summaryrefslogtreecommitdiffstats
path: root/security/smack
diff options
context:
space:
mode:
authorCasey Schaufler <casey@schaufler-ca.com>2012-11-02 19:28:11 +0100
committerCasey Schaufler <casey@schaufler-ca.com>2012-12-14 19:57:10 +0100
commit111fe8bd65e473d5fc6a0478cf1e2c8c6a77489a (patch)
tree8629b99d4166e0b5dd730a6e1a187e4b319e82f3 /security/smack
parentMerge tag 'yama-3.8' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/li... (diff)
downloadlinux-111fe8bd65e473d5fc6a0478cf1e2c8c6a77489a.tar.xz
linux-111fe8bd65e473d5fc6a0478cf1e2c8c6a77489a.zip
Smack: use select not depends in Kconfig
The components NETLABEL and SECURITY_NETWORK are required by Smack. Using "depends" in Kconfig hides the Smack option if the user hasn't figured out that they need to be enabled while using make menuconfig. Using select is a better choice. Because select is not recursive depends on NET and SECURITY are added. The reflects similar usage in TOMOYO and AppArmor. Targeted for git://git.gitorious.org/smack-next/kernel.git Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'security/smack')
-rw-r--r--security/smack/Kconfig6
1 files changed, 5 insertions, 1 deletions
diff --git a/security/smack/Kconfig b/security/smack/Kconfig
index 603b08784341..e69de9c642b7 100644
--- a/security/smack/Kconfig
+++ b/security/smack/Kconfig
@@ -1,6 +1,10 @@
config SECURITY_SMACK
bool "Simplified Mandatory Access Control Kernel Support"
- depends on NETLABEL && SECURITY_NETWORK
+ depends on NET
+ depends on INET
+ depends on SECURITY
+ select NETLABEL
+ select SECURITY_NETWORK
default n
help
This selects the Simplified Mandatory Access Control Kernel.