tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pid file segregation by uid?
ups-nut has two configure paths for pidfile location, one for root and
one for non-root.
Typically a package has one daemon and puts the pidfile in /var/run/foo
if non-root, and /var/run if root.
Upstream paranoia doctrine is that a non-root daemon being able to write
1 into a root pidfile is dangerous because it can cause the shutdown to
invoke killing that with root, vs the unprived user. So therefore I
should set the root pid path to /var/run and the non-root to
/var/run/nut and create that in rc.d/nutfoo.
The other approach is to just set all the /var/run/nut.
Precendent?
Opinions?
Home |
Main Index |
Thread Index |
Old Index