Re: [PATCH v2 0/3] Relocate execve() sanity checks

2020-06-05 Thread Kees Cook
On Fri, Jun 05, 2020 at 05:40:53PM -0700, Andrew Morton wrote: > On Fri, 5 Jun 2020 09:00:10 -0700 Kees Cook wrote: > > > While looking at the code paths for the proposed O_MAYEXEC flag, I saw > > some things that looked like they should be fixed up. > > > > exec: Change uselib(2) IS_SREG() f

Re: [PATCH v2 0/3] Relocate execve() sanity checks

2020-06-05 Thread Andrew Morton
On Fri, 5 Jun 2020 09:00:10 -0700 Kees Cook wrote: > While looking at the code paths for the proposed O_MAYEXEC flag, I saw > some things that looked like they should be fixed up. > > exec: Change uselib(2) IS_SREG() failure to EACCES > This just regularizes the return code on uselib(2)