NetBSD-Bugs archive

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

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

>Number:         45700
>Category:       kern
>Synopsis:       /chroot/proc/mounts exposes out-of-chroot pathnames
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 09 08:25:00 +0000 2011
>Originator:     Taylor R Campbell <>
>Release:        NetBSD 5.99.56
System: NetBSD oberon.local 5.99.56 NetBSD 5.99.56 (RIAMONOHACK) #0: Sun Oct 16 
07:50:03 UTC 2011 
Architecture: i386
Machine: i386

        If I'm chrooted in /chroot, and I mount procfs on /proc (in the
        chroot), then /proc/mounts exposes pathnames from outside the


        # chroot /chroot
        # mount -t procfs procfs /proc
        # cat /proc/mounts


        Yes, please!  It's not clear what the right behaviour is, but
        perhaps a hack similar to ptyfs's would be appropriate here.

Home | Main Index | Thread Index | Old Index