aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorKentaro Takeda <takedakn@nttdata.co.jp>2009-02-05 03:18:11 -0500
committerJames Morris <jmorris@namei.org>2009-02-11 23:15:03 -0500
commitf9ce1f1cda8b73a36f47e424975a9dfa78b7840c (patch)
tree66138b33dbf627f99f5ec67e0e39ce15ab830080 /include/linux/sched.h
parent523979adfa0b79d4e3aa053220c37a9233294206 (diff)
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 2127e959e0f4..397c20cfb6a5 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1158,6 +1158,8 @@ struct task_struct {
1158 /* ??? */ 1158 /* ??? */
1159 unsigned int personality; 1159 unsigned int personality;
1160 unsigned did_exec:1; 1160 unsigned did_exec:1;
1161 unsigned in_execve:1; /* Tell the LSMs that the process is doing an
1162 * execve */
1161 pid_t pid; 1163 pid_t pid;
1162 pid_t tgid; 1164 pid_t tgid;
1163 1165