[Pkg-sysvinit-devel] Bug#390126: initscripts: chrooted() is not
performing a valid check for chroot
Junichi Uekawa
dancer at netfort.gr.jp
Wed Oct 18 23:52:35 CEST 2006
retitle 390126 initscripts: chrooted() is not performing a valid check for chroot
reopen 390126 Junichi Uekawa <dancer at netfort.gr.jp>
thanks
Hi,
+chrooted() {
+ if [ -r /proc/1/root ]; then
+ return 1
+ fi
+ return 0
+}
This check, which tests if the real '/' of PID1 is readable, is not a
valid check for chroot, since a root user is able to access the real
'/' from even within a chroot.
regards,
junichi
--
dancer@{debian.org,netfort.gr.jp} Debian Project
More information about the Pkg-sysvinit-devel
mailing list