DragonFly bugs List (threaded) for 2007-01
DragonFly BSD
DragonFly bugs List (threaded) for 2007-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: HEAD: no rootfs in jail


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 Jan 2007 09:38:12 -0800 (PST)

: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@backplane.com>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]