NetBSD-Bugs archive

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

re: kern/45700: /chroot/proc/mounts exposes out-of-chroot pathnames

The following reply was made to PR kern/45700; it has been noted by GNATS.

From: matthew green <>
Subject: re: kern/45700: /chroot/proc/mounts exposes out-of-chroot pathnames
Date: Fri, 09 Dec 2011 20:00:18 +1100

 > Machine: i386
 > >Description:
 >      If I'm chrooted in /chroot, and I mount procfs on /proc (in the
 >      chroot), then /proc/mounts exposes pathnames from outside the
 >      chroot.
 > >How-To-Repeat:
 >      # chroot /chroot
 >      # mount -t procfs procfs /proc
 >      # cat /proc/mounts
 > >Fix:
 >      Yes, please!  It's not clear what the right behaviour is, but
 >      perhaps a hack similar to ptyfs's would be appropriate here.
 df(1) gets this right.  hopefully we can use what ever it does
 to fix this one...

Home | Main Index | Thread Index | Old Index