summaryrefslogtreecommitdiff
path: root/security/Makefile
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2002-10-16 23:47:59 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2002-10-16 23:47:59 -0700
commite6ebd8d693ae8a9d454065bf479fa3f271eb76de (patch)
treedbaa1204bb831bf4d58ccd48d5528dd1f30388d6 /security/Makefile
parent3105592febb579aa76004aad97d24f792978c253 (diff)
LSM: Create CONFIG_SECURITY and disable it by default for now.
This allows the security hooks to be compiled away into nothingness if CONFIG_SECURITY is disabled. When disabled, the default capabilities functionality is preserved. When enabled, security modules are allowed to be loaded.
Diffstat (limited to 'security/Makefile')
-rw-r--r--security/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/security/Makefile b/security/Makefile
index 9349c307504d..50a295118b2b 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -3,11 +3,15 @@
#
# Objects that export symbols
-export-objs := security.o
+export-objs := security.o capability.o
-# Object file lists
-obj-y := security.o dummy.o
+# if we don't select a security model, use the default capabilities
+ifneq ($(CONFIG_SECURITY),y)
+obj-y += capability.o
+endif
+# Object file lists
+obj-$(CONFIG_SECURITY) += security.o dummy.o
obj-$(CONFIG_SECURITY_CAPABILITIES) += capability.o
include $(TOPDIR)/Rules.make