Re: [PATCH v5 1/6] fs: Add support for an O_MAYEXEC flag on openat2(2)

2020-05-13 Thread Mickaël Salaün
On 12/05/2020 23:05, Kees Cook wrote: > On Tue, May 05, 2020 at 05:31:51PM +0200, Mickaël Salaün wrote: >> When the O_MAYEXEC flag is passed, openat2(2) may be subject to >> additional restrictions depending on a security policy managed by the >> kernel through a sysctl or implemented by an LSM

Re: [PATCH v5 1/6] fs: Add support for an O_MAYEXEC flag on openat2(2)

2020-05-12 Thread Kees Cook
On Tue, May 12, 2020 at 11:40:35PM +0200, Christian Heimes wrote: > On 12/05/2020 23.05, Kees Cook wrote: > > On Tue, May 05, 2020 at 05:31:51PM +0200, Mickaël Salaün wrote: > >> When the O_MAYEXEC flag is passed, openat2(2) may be subject to > >> additional restrictions depending on a security

Re: [PATCH v5 1/6] fs: Add support for an O_MAYEXEC flag on openat2(2)

2020-05-12 Thread Christian Heimes
On 12/05/2020 23.05, Kees Cook wrote: > On Tue, May 05, 2020 at 05:31:51PM +0200, Mickaël Salaün wrote: >> When the O_MAYEXEC flag is passed, openat2(2) may be subject to >> additional restrictions depending on a security policy managed by the >> kernel through a sysctl or implemented by an LSM

Re: [PATCH v5 1/6] fs: Add support for an O_MAYEXEC flag on openat2(2)

2020-05-12 Thread Kees Cook
On Tue, May 05, 2020 at 05:31:51PM +0200, Mickaël Salaün wrote: > When the O_MAYEXEC flag is passed, openat2(2) may be subject to > additional restrictions depending on a security policy managed by the > kernel through a sysctl or implemented by an LSM thanks to the > inode_permission hook. This

[PATCH v5 1/6] fs: Add support for an O_MAYEXEC flag on openat2(2)

2020-05-05 Thread Mickaël Salaün
When the O_MAYEXEC flag is passed, openat2(2) may be subject to additional restrictions depending on a security policy managed by the kernel through a sysctl or implemented by an LSM thanks to the inode_permission hook. This new flag is ignored by open(2) and openat(2). The underlying idea is to