]> git.karo-electronics.de Git - karo-tx-linux.git/commit
exec: kill task_struct->did_exec
authorOleg Nesterov <oleg@redhat.com>
Fri, 3 Jan 2014 03:10:31 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:31 +0000 (14:10 +1100)
commit4287d5a8b825aaafa6ae4333e0732f63b76785e6
tree5ff0438f7f8819d93ab56af75c30240d0ca98b61
parent810835227ec7eb3ed02bd65c1df72c81ca21d8b0
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>
fs/exec.c
include/linux/sched.h
kernel/fork.c
kernel/sys.c