[hurd] Define _PATH_MOUNTED as "/etc/mtab"
Cristian Rodriguez
yo@cristianrodriguez.net
Wed Jun 17 00:09:05 GMT 2026
On Tue, Jun 16, 2026 at 6:43 PM Samuel Thibault
<samuel.thibault@ens-lyon.org> wrote:
>
> From: Justus Winter <4winter@informatik.uni-hamburg.de>
>
> Change the definition of _PATH_MOUNTED to "/etc/mtab". This is the
> value used on Linux, and BSD also uses /etc/mtab.
The linux definition is wrong, it has to be ./proc/self/mounts always
with no ambiguity.
all the userspace now requires /etc/mtab not to be a regular file to operate.
It has to be the mounts on "this" process's mount namespace.
More information about the Libc-alpha
mailing list