diff options
Diffstat (limited to 'fs/binfmt_elf_fdpic.c')
-rw-r--r-- | fs/binfmt_elf_fdpic.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c index e7afcb67a2d3..c64bf5ee2df4 100644 --- a/fs/binfmt_elf_fdpic.c +++ b/fs/binfmt_elf_fdpic.c | |||
@@ -335,8 +335,6 @@ static int load_elf_fdpic_binary(struct linux_binprm *bprm, | |||
335 | current->mm->context.exec_fdpic_loadmap = 0; | 335 | current->mm->context.exec_fdpic_loadmap = 0; |
336 | current->mm->context.interp_fdpic_loadmap = 0; | 336 | current->mm->context.interp_fdpic_loadmap = 0; |
337 | 337 | ||
338 | current->flags &= ~PF_FORKNOEXEC; | ||
339 | |||
340 | #ifdef CONFIG_MMU | 338 | #ifdef CONFIG_MMU |
341 | elf_fdpic_arch_lay_out_mm(&exec_params, | 339 | elf_fdpic_arch_lay_out_mm(&exec_params, |
342 | &interp_params, | 340 | &interp_params, |
@@ -414,7 +412,6 @@ static int load_elf_fdpic_binary(struct linux_binprm *bprm, | |||
414 | #endif | 412 | #endif |
415 | 413 | ||
416 | install_exec_creds(bprm); | 414 | install_exec_creds(bprm); |
417 | current->flags &= ~PF_FORKNOEXEC; | ||
418 | if (create_elf_fdpic_tables(bprm, current->mm, | 415 | if (create_elf_fdpic_tables(bprm, current->mm, |
419 | &exec_params, &interp_params) < 0) | 416 | &exec_params, &interp_params) < 0) |
420 | goto error_kill; | 417 | goto error_kill; |