Re: [PATCH 4/5] exec: Allow load_misc_binary to call prepare_binfmt unconditionally

2020-05-11 Thread Kees Cook
On Sat, May 09, 2020 at 02:42:23PM -0500, Eric W. Biederman wrote: > > Add a flag preserve_creds that binfmt_misc can set to prevent > credentials from being updated. This allows binfmrt_misc to always > call prepare_binfmt. Allowing the credential computation logic to be > consolidated. > > Re

[PATCH 4/5] exec: Allow load_misc_binary to call prepare_binfmt unconditionally

2020-05-09 Thread Eric W. Biederman
Add a flag preserve_creds that binfmt_misc can set to prevent credentials from being updated. This allows binfmrt_misc to always call prepare_binfmt. Allowing the credential computation logic to be consolidated. Ref: c407c033de84 ("[PATCH] binfmt_misc: improve calculation of interpreter's cre