Re: [d_path 6/7] Filter out disconnected paths from /proc/mounts

Alan Cox
2007-04-20T09:31:48Z

> There is some disagreement what /proc/mounts should include. Currently it
> reports all mounts from the current namespace and doesn't include lazy
> unmounts. This leads to ambiguities with the rootfs (which is an internal mount
> irrelevant to user-space except in the initrd), and in chroots.
>
> With this and the next patch, /proc/mounts only reports the mounts reachable
> for the current process, which makes a lot more sense IMO. If the current
> process is rooted in the namespace root (which it usually is), it will see all
> mounts except for the rootfs.
>
> Signed-off-by: Andreas Gruenbacher <agruen@suse.de>

This change in behaviour appears to be fine for glibc (except when trying
to find the name of a file from a namespace we are not in, which wouldn't
have come out right before either)

Acked-by: Alan Cox <alan@redhat.com>

(but still NAK on the getcwd change)