Date: Thu, 03 Nov 2016 16:04:50 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 213390] dns/unbound: Restart fails when upgrading inside a jail Message-ID: <bug-213390-13-Jc06Qy81ZP@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-213390-13@https.bugs.freebsd.org/bugzilla/> References: <bug-213390-13@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=3D213390 --- Comment #2 from Garrett Wollman <wollman@FreeBSD.org> --- I have figured out the cause of the problem. unbound always attempts to ch= root when starting, but normally succeeds. When starting inside the environment= of a package upgrade, however, it is erroneously running with a file descriptor open on a directory. The check in `sys/kern/vfs_syscalls.c#chroot_refuse_vdir_fds` then refuses to allow the chroot to succeed, *if* either `kern.chroot_allow_open_directories` is set = to 0, or it is set to 1 (which is the default) and is already running in a chr= oot (which includes jails). Conclusion: this is a bug in pkg; the startup scripts should not be run with any descriptors open other than the standard 0/1/2. --=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-213390-13-Jc06Qy81ZP>