HEAD: no rootfs in jail

Matthew Dillon dillon at apollo.backplane.com
Fri Jan 26 09:45:09 PST 2007


:At first I thought that chroot_visible_mnt() was to be blamed, but
:the behavior doesn't change even if I changed it to always return 1.
:
:Cheers.

    Hmm.  Yes, you are right.  chroot_visible_mnt() is working properly.

    The problem is that the real mount point is not visible to the
    chroot, because it is above the chroot.

	chroot /home/root.jail /bin/csh
	df /

    /home/root.jail is not a mount point.  The mount point for that directory	
    is /home (on my system) which is 'above' the jail, so cache_fullpath()
    traverses from 'above' the jail and never locates the process's root.

    We have to fake the root mount description in this case.  I'll have to
    think about this.

					-Matt
					Matthew Dillon 
					<dillon at backplane.com>





More information about the Bugs mailing list