[Bug 223327] dhclient: close the pidfile before calling chroot(2)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Nov 18 11:58:03 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223327
Kristof Provost <kp at freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cem at freebsd.org,
| |kp at freebsd.org,
| |markj at FreeBSD.org,
| |oshogbo at freebsd.org
--- Comment #1 from Kristof Provost <kp at freebsd.org> ---
Hmm. This is quite interesting. I think the problem started with r322369 which
changed libutil / pidfile_open() to keep the directory fd (rather than the
pidfile fd) so it could unlink the pidfile in capability mode.
That appears to conflict with chroot now, because you can't chroot if you've
got a directory fd open to somewhere outside the new root.
I don't think this patch is right, because it'll break the pidfile_remove() in
routehandler().
I'm not at all sure how this should be fixed though.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list