Skip to content

Commit

Permalink
Smack: use select not depends in Kconfig
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Casey Schaufler committed Dec 14, 2012
1 parent 3f0cc6a commit 111fe8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion security/smack/Kconfig
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 111fe8b

Please sign in to comment.