|
@@ -853,6 +853,7 @@ static int load_elf_binary(struct linux_binprm *bprm)
|
|
|
current->flags |= PF_RANDOMIZE;
|
|
|
|
|
|
setup_new_exec(bprm);
|
|
|
+ install_exec_creds(bprm);
|
|
|
|
|
|
/* Do this so that we can load the interpreter, if need be. We will
|
|
|
change some of these later */
|
|
@@ -1044,7 +1045,6 @@ static int load_elf_binary(struct linux_binprm *bprm)
|
|
|
goto out;
|
|
|
#endif /* ARCH_HAS_SETUP_ADDITIONAL_PAGES */
|
|
|
|
|
|
- install_exec_creds(bprm);
|
|
|
retval = create_elf_tables(bprm, &loc->elf_ex,
|
|
|
load_addr, interp_load_addr);
|
|
|
if (retval < 0)
|