summaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 2c5ae338773c..60478a0e7a37 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1110,7 +1110,7 @@ int flush_old_exec(struct linux_binprm * bprm)
1110 bprm->mm = NULL; /* We're using it now */ 1110 bprm->mm = NULL; /* We're using it now */
1111 1111
1112 set_fs(USER_DS); 1112 set_fs(USER_DS);
1113 current->flags &= ~(PF_RANDOMIZE | PF_KTHREAD); 1113 current->flags &= ~(PF_RANDOMIZE | PF_FORKNOEXEC | PF_KTHREAD);
1114 flush_thread(); 1114 flush_thread();
1115 current->personality &= ~bprm->per_clear; 1115 current->personality &= ~bprm->per_clear;
1116 1116