public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ifdef struct task_struct::security
@ 2007-08-06 18:55 Alexey Dobriyan
  2007-08-06 20:31 ` Serge E. Hallyn
  0 siblings, 1 reply; 8+ messages in thread
From: Alexey Dobriyan @ 2007-08-06 18:55 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

For those who don't care about CONFIG_SECURITY.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 include/linux/sched.h |    3 ++-
 kernel/fork.c         |    2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1086,8 +1086,9 @@ struct task_struct {
 	int (*notifier)(void *priv);
 	void *notifier_data;
 	sigset_t *notifier_mask;
-	
+#ifdef CONFIG_SECURITY
 	void *security;
+#endif
 	struct audit_context *audit_context;
 	seccomp_t seccomp;
 
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1066,7 +1066,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;


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-08-08  0:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-06 18:55 [PATCH] ifdef struct task_struct::security Alexey Dobriyan
2007-08-06 20:31 ` Serge E. Hallyn
2007-08-07  5:08   ` Andrew Morton
2007-08-07 15:05     ` Serge E. Hallyn
2007-08-07 15:57       ` Casey Schaufler
2007-08-07 16:12         ` Serge E. Hallyn
2007-08-08  0:34           ` Andrew Morton
2007-08-07 19:04       ` Alexey Dobriyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox