Smack: use select not depends in Kconfig
authorCasey Schaufler <casey@schaufler-ca.com>
Fri, 2 Nov 2012 18:28:11 +0000 (11:28 -0700)
committerKitae Kim <kt920.kim@samsung.com>
Tue, 21 May 2013 10:37:11 +0000 (19:37 +0900)
commit 111fe8bd65e473d5fc6a0478cf1e2c8c6a77489a upstream

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

Change-Id: I375867a1c1ec6958ae4b579823f651b6431e5cc6
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-on: http://165.213.202.130:8080/53901
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-by: Kyungmin Park <kyungmin.park@samsung.com>
security/smack/Kconfig

index 603b0878434172a32183404bd0525575b9a017e5..e69de9c642b7f03c8648457495511ca0c8bc839c 100644 (file)
@@ -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.