[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 10:02:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279116 --- Comment #3 from crest@rlwinm.de --- Afaik only FreeBSD tracks the login class in the kernel via setloginclass(2). Sadly the FreeBSD base system lacks a chain-loadable command that just calls setloginclass(2) and execs into its remaining arguments. Every command that's available to shell (or execline) scripts (e.g. su) doesn't exec(), but fork()+exec() which is a problem for reliable process supervision without using operating system specific APIs (e.g. sub-reapers). Do you want to have the inner nodes of the supervision tree (s6-svscan, s6-supervise) modify their login class or only the run/finish/check/up/down scripts? In the latter case adding the "missing chain-loader" as its own tiny should solve the problem and avoid the hassle of maintaining a FreeBSD specific feature patch even if it's small. -- You are receiving this mail because: You are the assignee for the bug.