freebsd-src/sbin/init
Mark Johnston 976e100378 dhclient: Don't chroot if we are in capability mode.
The main dhclient process is Capsicumized but also chroots to
restrict filesystem access.  With r322369, pidfile(3) maintains a
directory descriptor for the pidfile, which can cause the chroot
to fail in certain cases.  To minimize the problem, only chroot
if we fail to enter capability mode, and store dhclient pidfiles
in a subdirectory of /var/run, thus restricting access via
pidfile(3)'s directory descriptor.

PR:		223327
Reviewed by:	cem, oshogbo
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D16584
2018-08-06 16:22:01 +00:00
..
rc.d dhclient: Don't chroot if we are in capability mode. 2018-08-06 16:22:01 +00:00
init.8 Implement power cycle in init. 2017-10-25 15:30:40 +00:00
init.c Make it possible for init to execute any executable, not just sh(1) 2018-08-04 14:52:32 +00:00
Makefile Switch these to CONFS as well so they work with etcupdate/mergemaster. 2018-07-28 23:02:10 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
netstart Opps, I missed moving a couple of files in r336845. 2018-07-28 20:41:33 +00:00
network.subr Opps, I missed moving a couple of files in r336845. 2018-07-28 20:41:33 +00:00
NOTES
pathnames.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
pccard_ether Opps, I missed moving a couple of files in r336845. 2018-07-28 20:41:33 +00:00
rc Opps, I missed moving a couple of files in r336845. 2018-07-28 20:41:33 +00:00
rc.conf Opps, I missed moving a couple of files in r336845. 2018-07-28 20:41:33 +00:00
rc.initdiskless Opps, I missed moving a couple of files in r336845. 2018-07-28 20:41:33 +00:00
rc.resume Opps, I missed moving a couple of files in r336845. 2018-07-28 20:41:33 +00:00
rc.shutdown Opps, I missed moving a couple of files in r336845. 2018-07-28 20:41:33 +00:00
rc.subr Opps, I missed moving a couple of files in r336845. 2018-07-28 20:41:33 +00:00
rc.suspend Opps, I missed moving a couple of files in r336845. 2018-07-28 20:41:33 +00:00