On Wednesday 14 February 2007 14:57, Andreas Gruenbacher wrote: > [1] Always make disconnected paths relative: > > From all these choices, I actually like [1] best, together with hiding > unreachable mount points in /proc/$pid/mounts and /proc/$pid/mountstats: > there is no real point in pretending that unreachable paths are reachable; > whichever process uses these paths is just as much in error when trying > from the pwd as when trying from the chroot. So here is how this could be implemented. See the lengthy explanations in the patch headers, too. d_path-lazy-unmounts.diff - Now fails sys_getcwd() with -ENOENT in case the path computed doesn't lead to the chroot. - No longer reports empty paths, but report '.' in that case instead. - Incorporates Neil's other minor feedback. no-unreachable-paths.diff Hide unreachable mount points in /proc/mounts and /proc/$PID/mountstats. In particular, this includes the rootfs mount for all processes that are not chroot()ed in that mount. Andreas