Skip to content

Commit 5915eb5

Browse files
Miklos Szeredixjamesmorris
authored andcommitted
security: remove dummy module
Remove the dummy module and make the "capability" module the default. Compile and boot tested. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Acked-by: Serge Hallyn <serue@us.ibm.com> Signed-off-by: James Morris <jmorris@namei.org>
1 parent b478a9f commit 5915eb5

5 files changed

Lines changed: 996 additions & 1340 deletions

File tree

‎security/Kconfig‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,9 @@ config SECURITY_NETWORK_XFRM
7373
IPSec.
7474
If you are unsure how to answer this question, answer N.
7575

76-
config SECURITY_CAPABILITIES
77-
bool "Default Linux Capabilities"
78-
depends on SECURITY
79-
default y
80-
help
81-
This enables the "default" Linux capabilities functionality.
82-
If you are unsure how to answer this question, answer Y.
83-
8476
config SECURITY_FILE_CAPABILITIES
8577
bool "File POSIX Capabilities (EXPERIMENTAL)"
86-
depends on (SECURITY=n || SECURITY_CAPABILITIES!=n) && EXPERIMENTAL
78+
depends on SECURITY && EXPERIMENTAL
8779
default n
8880
help
8981
This enables filesystem capabilities, allowing you to give

‎security/Makefile‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@ obj-$(CONFIG_KEYS) += keys/
66
subdir-$(CONFIG_SECURITY_SELINUX) += selinux
77
subdir-$(CONFIG_SECURITY_SMACK) += smack
88

9-
# if we don't select a security model, use the default capabilities
10-
ifneq ($(CONFIG_SECURITY),y)
9+
# always enable default capabilities
1110
obj-y += commoncap.o
12-
endif
1311

1412
# Object file lists
15-
obj-$(CONFIG_SECURITY) += security.o dummy.o inode.o
13+
obj-$(CONFIG_SECURITY) += security.o capability.o inode.o
1614
# Must precede capability.o in order to stack properly.
1715
obj-$(CONFIG_SECURITY_SELINUX) += selinux/built-in.o
18-
obj-$(CONFIG_SECURITY_SMACK) += commoncap.o smack/built-in.o
19-
obj-$(CONFIG_SECURITY_CAPABILITIES) += commoncap.o capability.o
20-
obj-$(CONFIG_SECURITY_ROOTPLUG) += commoncap.o root_plug.o
16+
obj-$(CONFIG_SECURITY_SMACK) += smack/built-in.o
17+
obj-$(CONFIG_SECURITY_ROOTPLUG) += root_plug.o
2118
obj-$(CONFIG_CGROUP_DEVICE) += device_cgroup.o

0 commit comments

Comments
 (0)