diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-01-23 18:55:52 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 19:37:02 -0500 |
commit | 98611e4e6a2b4a03fd2d4750cce8e4455a995c8d (patch) | |
tree | 5979f4761ba67616eaeb3c5fd6fd19dbd265f9f2 /fs/exec.c | |
parent | 63e46b95e9eae1161832bf45cb40bbad37bfb182 (diff) |
exec: kill task_struct->did_exec
We can kill either task->did_exec or PF_FORKNOEXEC, they are mutually
exclusive. The patch kills ->did_exec because it has a single user.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1424,7 +1424,6 @@ static int exec_binprm(struct linux_binprm *bprm) | |||
1424 | audit_bprm(bprm); | 1424 | audit_bprm(bprm); |
1425 | trace_sched_process_exec(current, old_pid, bprm); | 1425 | trace_sched_process_exec(current, old_pid, bprm); |
1426 | ptrace_event(PTRACE_EVENT_EXEC, old_vpid); | 1426 | ptrace_event(PTRACE_EVENT_EXEC, old_vpid); |
1427 | current->did_exec = 1; | ||
1428 | proc_exec_connector(current); | 1427 | proc_exec_connector(current); |
1429 | } | 1428 | } |
1430 | 1429 | ||