User Details
- User Since
- Jul 22 2022, 12:24 AM (62 w, 2 d)
Thu, Sep 28
Again, maybe I just need some more context to understand the reasoning behind this change.
Mon, Sep 4
Sun, Sep 3
Reword comment to say the namespace instead of just namespace.
Update to avoid rebase conflicts.
Update to avoid rebase conflicts.
Create a new cap_filed structure and accompanying cfiled SLIST for filed integrity verification in libcasper's cap_p_open().
Create filed nvlist directly from readconfigfile() and address Mark's comments.
Fri, Sep 1
Add comment explaining intentional namespace pollution.
This patch has been applied to src under commit af93fea710385b2b11f0cabd377e7ed6f3d97c34.
Aug 30 2023
This patch was getting long, as @bsdimp pointed out. Split it into three separate patches. This patch will still define the locking regime.
Aug 29 2023
Include <sys/time.h> instead of <sys/timespec.h>. This causes intentional namespace pollution that mimics Linux.
Aug 28 2023
- Remove locking around knlist_add() and set islocked arg to 0
- Add space under declarations in timerfd_getboottime()
Aug 27 2023
Aug 26 2023
- Do not initialize tfd_lock with MTX_RECURSE.
- Add assertion in filt_timerfdread(), showing that the tfd_lock is held.
- Place tfd_count in kn->kn_data.
- Add recursion to tfd_lock mtx.
- Return boolean in filt_timerfdread().
- Don't check if tfd == NULL.
- Declare struct thread in timerfd.h instead of including sys/proc.h.
Aug 25 2023
Add assertions to guarantee that the iovec count returned by nvlist_get_nvlist_array() is less or equal to than TTYMSG_IOV_MAX, the maximum amount of iovecs allowed by ttymsg().
Fix minor mistyping in populate_config(). filed_count should be declared as size_t, not uint64_t.
Fix incorrect handling of the nvlist size argument for in nvlist_get_nvlist_array() and nvlist_get_binary()
Aug 24 2023
Address @grahamperrin's comments.
Don't manually add the iovec count to the nvlist. The iovec count is fetched when getting the nvlist iovec array.
Don't manually add the filed count to the nvlist. The filed count is fetched when getting the nvlist filed array.
- Address Mark's style(9) comments
- Add error checking for strdup() in prop_filter_compile()
Aug 23 2023
Open the renamed syslogd.casper service (used to be syslogd.*).
Address Mark's comments
Add XXX comment for needed future tzcode capability module
- Do not allocate a new iovlist in nvlist_to_iovec()
- Use calloc() when allocating memory for the iovlist array.
- Change service name to syslogd.casper
- Compile the regex exp in nvlist_to_prop_filter()
- Do not add sockets with sl_recv == NULL to the kqueue.
- Remove listen() altogether.
I believe that you could leave the block which calls listen() alone (and I do think that block is totally bogus and could be deleted, syslogd doesn't handle listening sockets) and the problem would still be gone. Is that right?
Aug 22 2023
Use cap_xfer_nvlist() to transfer nvlists in cap_wallmsg(). Previously, cap_send_nvlist() was used without cap_recv_nvliust(), leaving an extra nvlist on libcasper's queue. This resulted in future nvlist transfers to retreive the wrong result.
Update to avoid rebase conflicts
Make sure that filed->f_type is F_FILE before adding descriptor to nvlist
Close console/tty descriptors while config parsing.
Aug 21 2023
Use cap_ttymsg() instead of ttymsgat()
Add cap_ttymsg() and update to avoid rebasing conflicts
Use logerror() to log errors instead of exiting. This makes debugging significantly easier when something goes wrong during configuration parsing.
In prop_filter_compile(), the filter string pointer is modified so free()'ing it leads to unintended behavior. Save a filter_begpos pointer and free() that during cleanup.
Update diff to include context
Aug 20 2023
Call die() instead of err() in waitdaemon when an error occurs so the pidfile is removed.
Update after peerlist rebase, adding pidfile_remove()
Update after peerlist rebase, adding pidfile_remove() in cleanup
Bring back peerlist -- see updated patch summary
Aug 17 2023
Update after rebase conflicts
Fix conflicts after rebase. The previous revision has been squashed into a patch earlier in the stack.
Update after rebase conflicts
Fix bug where syslogd would stall upon startup, never getting the chance to fsync().
Remove ts and tsp variables altogether (see updated patch summary)
Remove EV_CLEAR flag when adding logsocket kevents to kqueue so we don't drop INET messages.
Aug 16 2023
Remove reload parameter in close_filed(). Move kqueue deletion into closelogfiles() instead.
Add boolean reload parameter to close_filed(). When set to true, remove kevents that reference the filed.
Aug 15 2023
Launch syslogd with the -d debug flag to provide more diagnostic information upon test failures.
Aug 14 2023
The nulldesc descriptor is used in waitdaemon() so open it prior to calling waitdaemon()
Move consfile setup before waitdaemon() to align with nulldesc ordering in https://reviews.freebsd.org/D41381
Do not assign boolean value to integer mask_C1