mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] remove empty build of capability.o
@ 2004-05-11 23:46 Chris Wright
  2004-05-11 23:50 ` [PATCH 2/3] minor cleanups in capability.c Chris Wright
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Wright @ 2004-05-11 23:46 UTC (permalink / raw)
  To: akpm, torvalds; +Cc: linux-kernel

The build includes capability.c when CONFIG_SECURITY=n, yet the whole file
is ifdef'd out.  Remove unnecessary build step as well as superfluous ifdefs.

--- linus-2.5/security/capability.c~ifdef	2004-05-11 14:55:19.000000000 -0700
+++ linus-2.5/security/capability.c	2004-05-11 15:00:28.000000000 -0700
@@ -23,9 +23,6 @@
 #include <linux/netlink.h>
 #include <linux/ptrace.h>
 
-#ifdef CONFIG_SECURITY
-
-
 static struct security_operations capability_ops = {
 	.ptrace =			cap_ptrace,
 	.capget =			cap_capget,
@@ -99,5 +96,3 @@
 
 MODULE_DESCRIPTION("Standard Linux Capabilities Security Module");
 MODULE_LICENSE("GPL");
-
-#endif	/* CONFIG_SECURITY */
--- linus-2.5/security/Makefile~ifdef	2004-05-11 14:58:06.000000000 -0700
+++ linus-2.5/security/Makefile	2004-05-11 14:58:16.000000000 -0700
@@ -6,7 +6,7 @@
 
 # if we don't select a security model, use the default capabilities
 ifneq ($(CONFIG_SECURITY),y)
-obj-y		+= commoncap.o capability.o
+obj-y		+= commoncap.o
 endif
 
 # Object file lists

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

end of thread, other threads:[~2004-05-12  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-11 23:46 [PATCH 1/3] remove empty build of capability.o Chris Wright
2004-05-11 23:50 ` [PATCH 2/3] minor cleanups in capability.c Chris Wright
2004-05-11 23:56   ` [PATCH 3/3] add disable param to capabilities module Chris Wright

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

all inboxes | Powered by JetHome®