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: Taylor R Campbell <campbell+netbsd%mumble.net@localhost>
To: wiz%NetBSD.org@localhost
Cc: kern-bug-people%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost,
        gnats-admin%netbsd.org@localhost, gnats-bugs%NetBSD.org@localhost
Subject: Re: kern/45700 (/chroot/proc/mounts exposes out-of-chroot pathnames)
Date: Fri, 16 Dec 2011 04:57:20 +0000

    Date: Thu, 15 Dec 2011 21:17:34 +0000 (UTC)
    From: wiz%NetBSD.org@localhost
 
    Is christos commit sufficient to fix this?
 
 It would seem appropriate to me for /proc/mounts to match the
 behaviour of getvfsstat, which christos's change doesn't quite
 implement -- getvfsstat doesn't show the full path of any mount point
 even to the superuser, and it fakes an entry for a root file system if
 the chroot is not itself the mount point of any real file system.
 
 That's what I tried to do in the patch I suggested, although I botched
 something about the root file system fabrication.
 


Home | Main Index | Thread Index | Old Index