[Bug 279116] sysutils/s6-rc update to 0.5.4.2
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 279116] sysutils/s6-rc update to 0.5.4.2"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 27 May 2024 06:02:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279116 --- Comment #2 from dewayne@heuristicsystems.com.au --- (In reply to crest from comment #1) Unfortunately I don't have any cycles. However if interested I can forward one of the two changes that I've made to s6. I changed s6-envuidgid to use login class resources which is FreeBSD specific and unlikely to change per + if (setusercontext(NULL, pw, uid, LOGIN_SETALL) != 0) /* FreeBSD LOGIN_SETALL=0x07ff enable all capabilities */ Because I do a lot of auditing and have 21 different time formats (who knew) in log files, I've modied s6-log.c to use g or G to use seconds or seconds+microseconds. Though during a breakin or RCA ms is sufficient. + if (gflags & 8) /* g secs since 1970 */ + hlen = snprintf(&hstamp[0], 32, "%lu ", tv.tv_sec); + if (gflags & 0x10) /* G sec.microsec since 1970 */ + hlen = snprintf(&hstamp[0], 32, "%lu.%0.4lu ", tv.tv_sec, tv.tv_usec/100); I considered sending to Laurent but he's pretty attached to tai64 and seems to want to avoid OS specifics. -- You are receiving this mail because: You are the assignee for the bug.