Re: [PATCH v6 1/4] openat2: new OPENAT2_REGULAR flag support
From: Jori Koolstra
Date: Thu Apr 16 2026 - 17:36:56 EST
> Op 16-04-2026 17:15 CEST schreef Christian Brauner <brauner@xxxxxxxxxx>:
>
>
> On Thu, Apr 16, 2026 at 05:03:26PM +0200, Jori Koolstra wrote:
> >
> > If I recall correctly, Aleksa has suggested we might also want to add
> > O_EMPTYPATH to openat() instead of only allowing this for openat2().
> > I am waiting to see what Christian thinks of this.
>
> We can do that, yes. For O_EMPTYPATH that is workable.
All right, then I'll update the patch this weekend.
>
> I don't mind too much if we leave OPENAT2_REGUALR in the 32-bit flag
> space. It'll silently be ignored but the flag name should give it away.
I would also prefer to have the bits separated. Although it is unlikely
that we will add so many O_* that we will ever run out of space, it just
seems cleaner, and at no cost. But it's not too important.
Thanks,
Jori.