diff options
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 7f6aff3f72eb..e5495f37c6ed 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c | |||
@@ -853,6 +853,7 @@ static int load_elf_binary(struct linux_binprm *bprm) | |||
853 | current->flags |= PF_RANDOMIZE; | 853 | current->flags |= PF_RANDOMIZE; |
854 | 854 | ||
855 | setup_new_exec(bprm); | 855 | setup_new_exec(bprm); |
856 | install_exec_creds(bprm); | ||
856 | 857 | ||
857 | /* Do this so that we can load the interpreter, if need be. We will | 858 | /* Do this so that we can load the interpreter, if need be. We will |
858 | change some of these later */ | 859 | change some of these later */ |
@@ -1044,7 +1045,6 @@ static int load_elf_binary(struct linux_binprm *bprm) | |||
1044 | goto out; | 1045 | goto out; |
1045 | #endif /* ARCH_HAS_SETUP_ADDITIONAL_PAGES */ | 1046 | #endif /* ARCH_HAS_SETUP_ADDITIONAL_PAGES */ |
1046 | 1047 | ||
1047 | install_exec_creds(bprm); | ||
1048 | retval = create_elf_tables(bprm, &loc->elf_ex, | 1048 | retval = create_elf_tables(bprm, &loc->elf_ex, |
1049 | load_addr, interp_load_addr); | 1049 | load_addr, interp_load_addr); |
1050 | if (retval < 0) | 1050 | if (retval < 0) |