[PATCH v12 11/12] open: openat2(2) syscall

Linus Torvalds torvalds at linux-foundation.org
Sat Sep 7 16:58:23 UTC 2019


On Sat, Sep 7, 2019 at 5:40 AM Jeff Layton <jlayton at kernel.org> wrote:
>
> After thinking about this a bit, I wonder if we might be better served
> with a new set of OA2_* flags instead of repurposing the O_* flags?

I'd hate to have yet _another_ set of translation functions, and
another chance of people just getting it wrong either in user space or
the kernel.

So no. Let's not make another set of flags that has no sane way to
have type-safety to avoid more confusion.

The new flags that _only_ work with openat2() might be named with a
prefix/suffix to mark that, but I'm not sure it's a huge deal.

                 Linus


More information about the Containers mailing list