[hurd] Define _PATH_MOUNTED as "/etc/mtab"

Andreas Schwab schwab@suse.de
Wed Jun 17 07:38:21 GMT 2026


On Jun 16 2026, Cristian Rodriguez wrote:

> 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.

Isn't that exactly what /etc/mtab provides?

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list