Re: [PATCH v21 07/12] landlock: Support filesystem access-control

2020-10-14 Thread James Morris
On Wed, 14 Oct 2020, Mickaël Salaün wrote: > > On 14/10/2020 20:52, Mickaël Salaün wrote: > > > > On 14/10/2020 20:07, James Morris wrote: > >> On Thu, 8 Oct 2020, Mickaël Salaün wrote: > >> > >>> +config ARCH_EPHEMERAL_STATES > >>> + def_bool n > >>> + help > >>> + An arch should select this

Re: [PATCH v21 07/12] landlock: Support filesystem access-control

2020-10-14 Thread Mickaël Salaün
On 14/10/2020 20:52, Mickaël Salaün wrote: > > On 14/10/2020 20:07, James Morris wrote: >> On Thu, 8 Oct 2020, Mickaël Salaün wrote: >> >>> +config ARCH_EPHEMERAL_STATES >>> + def_bool n >>> + help >>> + An arch should select this symbol if it does not keep an internal >>> kernel >>> +

Re: [PATCH v21 07/12] landlock: Support filesystem access-control

2020-10-14 Thread Mickaël Salaün
On 14/10/2020 20:07, James Morris wrote: > On Thu, 8 Oct 2020, Mickaël Salaün wrote: > >> +config ARCH_EPHEMERAL_STATES >> +def_bool n >> +help >> + An arch should select this symbol if it does not keep an internal >> kernel >> + state for kernel objects such as inodes, but

Re: [PATCH v21 07/12] landlock: Support filesystem access-control

2020-10-14 Thread James Morris
On Thu, 8 Oct 2020, Mickaël Salaün wrote: > +config ARCH_EPHEMERAL_STATES > + def_bool n > + help > + An arch should select this symbol if it does not keep an internal > kernel > + state for kernel objects such as inodes, but instead relies on > something > + else

[PATCH v21 07/12] landlock: Support filesystem access-control

2020-10-08 Thread Mickaël Salaün
From: Mickaël Salaün Thanks to the Landlock objects and ruleset, it is possible to identify inodes according to a process's domain. To enable an unprivileged process to express a file hierarchy, it first needs to open a directory (or a file) and pass this file descriptor to the kernel through