diff options
author | Kentaro Takeda <takedakn@nttdata.co.jp> | 2009-02-05 08:18:11 (GMT) |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-02-12 04:15:03 (GMT) |
commit | f9ce1f1cda8b73a36f47e424975a9dfa78b7840c (patch) | |
tree | 66138b33dbf627f99f5ec67e0e39ce15ab830080 /include/linux/sched.h | |
parent | 523979adfa0b79d4e3aa053220c37a9233294206 (diff) | |
download | linux-fsl-qoriq-f9ce1f1cda8b73a36f47e424975a9dfa78b7840c.tar.xz |
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>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 2127e95..397c20c 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1158,6 +1158,8 @@ struct task_struct { /* ??? */ unsigned int personality; unsigned did_exec:1; + unsigned in_execve:1; /* Tell the LSMs that the process is doing an + * execve */ pid_t pid; pid_t tgid; |