[Pkg-sysvinit-devel] Bug#390126: [Pbuilder-maint] Bug#392136:
pbuilder: sysvinit's mounted lib/init/rw prevents cleanup
Junichi Uekawa
dancer at netfort.gr.jp
Tue Oct 17 14:07:50 CEST 2006
found 390126 2.86.ds1-33
block 392136 by 390126
thanks
Hi,
On my system, the following is true, which is scary.
root at dancer64:/proc/1# ls root/home/dancer/Mail/inbox -d
root/home/dancer/Mail/inbox
root at dancer64:/proc/1# ls /home/dancer/Mail/inbox -d
ls: /home/dancer/Mail/inbox: No such file or directory
I am doubting the following is the correct way to figure out whether
it's a chrooted environment. Root user seems to be able to access
/proc/1/root
+chrooted() {
+ if [ -r /proc/1/root ]; then
+ return 1
+ fi
+ return 0
+}
My kernel may be a bit different since I live off git tree, so that
might depend on the kernel.
Linux dancer64 2.6.18dancer-dirty #1 PREEMPT Thu Sep 21 06:50:05 JST 2006 x86_64 GNU/Linux
regards,
junichi
--
dancer@{debian.org,netfort.gr.jp} Debian Project
More information about the Pkg-sysvinit-devel
mailing list