Add in_execve flag into task_struct.
authorKentaro Takeda <takedakn@nttdata.co.jp>
Thu, 5 Feb 2009 08:18:11 +0000 (17:18 +0900)
committerJames Morris <jmorris@namei.org>
Thu, 12 Feb 2009 04:15:03 +0000 (15:15 +1100)
commitf9ce1f1cda8b73a36f47e424975a9dfa78b7840c
tree66138b33dbf627f99f5ec67e0e39ce15ab830080
parent523979adfa0b79d4e3aa053220c37a9233294206
Add in_execve flag into task_struct.

This patch allows LSM modules to determine whether current process is in an
execve operation or not so that they can behave differently while an execve
operation is in progress.

This patch is needed by TOMOYO. Please see another patch titled "LSM adapter
functions." for backgrounds.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
fs/compat.c
fs/exec.c
include/linux/sched.h