Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 2024 06:02:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 279116] sysutils/s6-rc update to 0.5.4.2
Message-ID:  <bug-279116-7788-YSXtIZbY4I@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-279116-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-279116-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279116

--- 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 log=
in
class resources which is FreeBSD specific and unlikely to change per=20
+        if (setusercontext(NULL, pw, uid, LOGIN_SETALL) !=3D 0)  /* FreeBSD
LOGIN_SETALL=3D0x07ff 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.=20

+    if (gflags & 8)        /* g secs since 1970 */
+      hlen =3D snprintf(&hstamp[0], 32, "%lu ", tv.tv_sec);
+    if (gflags & 0x10)     /* G sec.microsec since 1970 */
+      hlen =3D 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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279116-7788-YSXtIZbY4I>