|
@@ -712,7 +712,6 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
|
|
|
goto out_free_dentry;
|
|
|
|
|
|
/* OK, This is the point of no return */
|
|
|
- current->flags &= ~PF_FORKNOEXEC;
|
|
|
current->mm->def_flags = def_flags;
|
|
|
|
|
|
/* Do this immediately, since STACK_TOP as used in setup_arg_pages
|
|
@@ -934,7 +933,6 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
|
|
|
#endif /* ARCH_HAS_SETUP_ADDITIONAL_PAGES */
|
|
|
|
|
|
install_exec_creds(bprm);
|
|
|
- current->flags &= ~PF_FORKNOEXEC;
|
|
|
retval = create_elf_tables(bprm, &loc->elf_ex,
|
|
|
load_addr, interp_load_addr);
|
|
|
if (retval < 0) {
|