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

From: Alan Cox
Date: Fri Apr 20 2007 - 05:32:07 EST


> 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@xxxxxxx>

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@xxxxxxxxxx>

(but still NAK on the getcwd change)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/