diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2020-05-14 05:25:20 +0200 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2020-05-21 17:16:57 +0200 |
commit | 8b72ca9004ed35104deb80b07990da5503bc5252 (patch) | |
tree | 302fcaec6e95e41a23ca31981e693dbcfd58af3f /arch/alpha | |
parent | exec: Allow load_misc_binary to call prepare_binprm unconditionally (diff) | |
download | linux-8b72ca9004ed35104deb80b07990da5503bc5252.tar.xz linux-8b72ca9004ed35104deb80b07990da5503bc5252.zip |
exec: Move the call of prepare_binprm into search_binary_handler
The code in prepare_binary_handler needs to be run every time
search_binary_handler is called so move the call into search_binary_handler
itself to make the code simpler and easier to understand.
Link: https://lkml.kernel.org/r/87d070zrvx.fsf_-_@x220.int.ebiederm.org
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: James Morris <jamorris@linux.microsoft.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'arch/alpha')
-rw-r--r-- | arch/alpha/kernel/binfmt_loader.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/alpha/kernel/binfmt_loader.c b/arch/alpha/kernel/binfmt_loader.c index a8d0d6e06526..d712ba51d15a 100644 --- a/arch/alpha/kernel/binfmt_loader.c +++ b/arch/alpha/kernel/binfmt_loader.c @@ -35,9 +35,6 @@ static int load_binary(struct linux_binprm *bprm) bprm->file = file; bprm->loader = loader; - retval = prepare_binprm(bprm); - if (retval < 0) - return retval; return search_binary_handler(bprm); } |