Re: [PATCH 2/8] fcntl-h: glibc now has openat2

Collin Funk <[email protected]>
Newsgroups gmane.comp.lib.gnulib.bugs
Message-ID <[email protected]>
Paul Eggert <[email protected]> writes:

> On 2026-06-17 08:43, Bruno Haible wrote:
>> We could add a dummy 'mseal' that does nothing.
>
> I.e., fails with ENOSYS?
>
> I've generally put off adding an emulation function to Gnulib unless I
> found a Gnulib-using app that needs the function. So, for example, the
> openat2 stuff was prompted by GNU Tar.
>
> Though this means there is a chicken-and-egg problem, it has saved me
> work....

When mseal was added to glibc, I considered whether it might be useful
fro Gnulib. E.g., it might be useful to provide a new interface to the
'immutable' module. The existing functions aren't compatible with mseal,
which expects the memory mappings to exist for the entire lifetime of
the process.

Then I realized I have no idea what that module is used for, and it is
probably best to wait until someone has a use case for it.

Collin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.