summaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2007-10-17 08:31:35 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 17:43:07 +0200
commit57c521ce6125e15e99e56c902cb8da96bee7b36d (patch)
treed6337e711db2d3baf6dcff89cf2d2bc1dd12a62f /kernel/fork.c
parentsecurity: Convert LSM into a static interface (diff)
downloadlinux-57c521ce6125e15e99e56c902cb8da96bee7b36d.tar.xz
linux-57c521ce6125e15e99e56c902cb8da96bee7b36d.zip
ifdef struct task_struct::security
For those who don't care about CONFIG_SECURITY. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: "Serge E. Hallyn" <serge@hallyn.com> Cc: Casey Schaufler <casey@schaufler-ca.com> Cc: James Morris <jmorris@namei.org> Cc: Stephen Smalley <sds@tycho.nsa.gov> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 3e764f6f2be1..490495a39c7e 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1079,7 +1079,9 @@ static struct task_struct *copy_process(unsigned long clone_flags,
do_posix_clock_monotonic_gettime(&p->start_time);
p->real_start_time = p->start_time;
monotonic_to_bootbased(&p->real_start_time);
+#ifdef CONFIG_SECURITY
p->security = NULL;
+#endif
p->io_context = NULL;
p->io_wait = NULL;
p->audit_context = NULL;