summaryrefslogtreecommitdiffstats
path: root/security/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'security/Kconfig')
-rw-r--r--security/Kconfig45
1 files changed, 9 insertions, 36 deletions
diff --git a/security/Kconfig b/security/Kconfig
index e4fe2f3c2c65..1d6463fb1450 100644
--- a/security/Kconfig
+++ b/security/Kconfig
@@ -40,8 +40,7 @@ config SECURITYFS
40 bool "Enable the securityfs filesystem" 40 bool "Enable the securityfs filesystem"
41 help 41 help
42 This will build the securityfs filesystem. It is currently used by 42 This will build the securityfs filesystem. It is currently used by
43 the TPM bios character driver and IMA, an integrity provider. It is 43 various security modules (AppArmor, IMA, SafeSetID, TOMOYO, TPM).
44 not used by SELinux or SMACK.
45 44
46 If you are unsure how to answer this question, answer N. 45 If you are unsure how to answer this question, answer N.
47 46
@@ -236,45 +235,19 @@ source "security/tomoyo/Kconfig"
236source "security/apparmor/Kconfig" 235source "security/apparmor/Kconfig"
237source "security/loadpin/Kconfig" 236source "security/loadpin/Kconfig"
238source "security/yama/Kconfig" 237source "security/yama/Kconfig"
238source "security/safesetid/Kconfig"
239 239
240source "security/integrity/Kconfig" 240source "security/integrity/Kconfig"
241 241
242choice 242config LSM
243 prompt "Default security module" 243 string "Ordered list of enabled LSMs"
244 default DEFAULT_SECURITY_SELINUX if SECURITY_SELINUX 244 default "yama,loadpin,safesetid,integrity,selinux,smack,tomoyo,apparmor"
245 default DEFAULT_SECURITY_SMACK if SECURITY_SMACK
246 default DEFAULT_SECURITY_TOMOYO if SECURITY_TOMOYO
247 default DEFAULT_SECURITY_APPARMOR if SECURITY_APPARMOR
248 default DEFAULT_SECURITY_DAC
249
250 help 245 help
251 Select the security module that will be used by default if the 246 A comma-separated list of LSMs, in initialization order.
252 kernel parameter security= is not specified. 247 Any LSMs left off this list will be ignored. This can be
253 248 controlled at boot with the "lsm=" parameter.
254 config DEFAULT_SECURITY_SELINUX
255 bool "SELinux" if SECURITY_SELINUX=y
256
257 config DEFAULT_SECURITY_SMACK
258 bool "Simplified Mandatory Access Control" if SECURITY_SMACK=y
259
260 config DEFAULT_SECURITY_TOMOYO
261 bool "TOMOYO" if SECURITY_TOMOYO=y
262
263 config DEFAULT_SECURITY_APPARMOR
264 bool "AppArmor" if SECURITY_APPARMOR=y
265
266 config DEFAULT_SECURITY_DAC
267 bool "Unix Discretionary Access Controls"
268
269endchoice
270 249
271config DEFAULT_SECURITY 250 If unsure, leave this as the default.
272 string
273 default "selinux" if DEFAULT_SECURITY_SELINUX
274 default "smack" if DEFAULT_SECURITY_SMACK
275 default "tomoyo" if DEFAULT_SECURITY_TOMOYO
276 default "apparmor" if DEFAULT_SECURITY_APPARMOR
277 default "" if DEFAULT_SECURITY_DAC
278 251
279endmenu 252endmenu
280 253