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)

   Date: Thu, 15 Dec 2011 21:17:34 +0000 (UTC)

   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