Re: [PATCH RESEND v11 7/8] open: openat2(2) syscall

2019-08-29 Thread Aleksa Sarai
On 2019-08-29, Rasmus Villemoes wrote: > On 29/08/2019 14.15, Aleksa Sarai wrote: > > On 2019-08-24, Daniel Colascione wrote: > > >> Why pad the structure when new functionality (perhaps accommodated via > >> a larger structure) could be signaled by passing a new flag? Adding > >> reserved

Re: [PATCH RESEND v11 7/8] open: openat2(2) syscall

2019-08-29 Thread Rasmus Villemoes
On 29/08/2019 14.15, Aleksa Sarai wrote: > On 2019-08-24, Daniel Colascione wrote: >> Why pad the structure when new functionality (perhaps accommodated via >> a larger structure) could be signaled by passing a new flag? Adding >> reserved fields to a structure with a size embedded in the ABI

Re: [PATCH RESEND v11 7/8] open: openat2(2) syscall

2019-08-29 Thread Aleksa Sarai
On 2019-08-24, Daniel Colascione wrote: > On Mon, Aug 19, 2019 at 8:37 PM Aleksa Sarai wrote: > > > > The most obvious syscall to add support for the new LOOKUP_* scoping > > flags would be openat(2). However, there are a few reasons why this is > > not the best course of action: > > > > * The

Re: [PATCH RESEND v11 7/8] open: openat2(2) syscall

2019-08-28 Thread Spencer Baugh
Jeff Layton writes: > On Mon, 2019-08-26 at 19:50 +, sba...@catern.com wrote: >> Aleksa Sarai writes: >> > To this end, we introduce the openat2(2) syscall. It provides all of the >> > features of openat(2) through the @how->flags argument, but also >> > also provides a new @how->resolve

Re: [PATCH RESEND v11 7/8] open: openat2(2) syscall

2019-08-28 Thread Jeff Layton
On Mon, 2019-08-26 at 19:50 +, sba...@catern.com wrote: > Aleksa Sarai writes: > > To this end, we introduce the openat2(2) syscall. It provides all of the > > features of openat(2) through the @how->flags argument, but also > > also provides a new @how->resolve argument which exposes

Re: [PATCH RESEND v11 7/8] open: openat2(2) syscall

2019-08-26 Thread sbaugh
Aleksa Sarai writes: > To this end, we introduce the openat2(2) syscall. It provides all of the > features of openat(2) through the @how->flags argument, but also > also provides a new @how->resolve argument which exposes RESOLVE_* flags > that map to our new LOOKUP_* flags. It also eliminates

[PATCH RESEND v11 7/8] open: openat2(2) syscall

2019-08-20 Thread Aleksa Sarai
The most obvious syscall to add support for the new LOOKUP_* scoping flags would be openat(2). However, there are a few reasons why this is not the best course of action: * The new LOOKUP_* flags are intended to be security features, and openat(2) will silently ignore all unknown flags. This