]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
UBUNTU: SAUCE: LSM stacking: fixup stacking kconfig
authorJohn Johansen <john.johansen@canonical.com>
Mon, 25 Sep 2017 16:03:19 +0000 (12:03 -0400)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 28 Sep 2017 20:54:25 +0000 (16:54 -0400)
The stack configs in the base stacking patches are confusing and
separate the selinux/smack stacking from the other LSMs with an
"extreme" stacking entry which is extremely confusing.

Switch the "extreme" stacking to a select for mutually exclusive
LSMs, which provides a better explanation of what is happening.

Fixes: 6c5100029055 ("LSM: general but not extreme module stacking")
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
security/Kconfig

index 8615fb21d635045853501dc3abe8b20e47dbd8bb..a3ffa29ef7f44c2107dd831969c278b0e4c819d2 100644 (file)
@@ -317,40 +317,38 @@ menu "Security Module Stack"
        visible if SECURITY_STACKING
 
 choice
-       prompt "Stacked 'extreme' security module"
-       default SECURITY_SELINUX_STACKED if SECURITY_SELINUX
-       default SECURITY_SMACK_STACKED if SECURITY_SMACK
-
-       help
-         Enable an extreme security module. These modules cannot
-         be used at the same time.
+       prompt "mutually exclusive LSMs"
+       default SECURITY_NO_EXCLUSIVE_LSM
 
+       config SECURITY_NO_EXCLUSIVE_LSM
+               bool "none"
+               help
+                 Do no add an LSM to is mutually exclusive to the stack."
        config SECURITY_SELINUX_STACKED
                bool "SELinux" if SECURITY_SELINUX=y
-       help
-         Add the SELinux security module to the stack. At this
-         time the Smack security module is incompatible with this
-         module.
-         Please be sure your user space code is accomodating of
-         this security module.
+               help
+                 Add the SELinux security module to the stack.
+                 Please be sure your user space code is accomodating of
+                 this security module.
+                 Ensure that your network configuration is compatible
+                 with your combination of security modules.
+
+                 Incompatible with Smack being stacked.
+
+                 If you are unsure how to answer this question, answer N.
 
        config SECURITY_SMACK_STACKED
                bool "Simplified Mandatory Access Control" if SECURITY_SMACK=y
-       help
-         Add the Smack security module to the stack. At this
-         time the SELinux security module is incompatible with this
-         module.
-         Please be sure your user space code is accomodating of
-         this security module.
+               help
+                 Add the Smack security module to the stack.
+                 Please be sure your user space code is accomodating of
+                 this security module.
+                 Ensure that your network configuration is compatible
+                 with your combination of security modules.
 
-       config SECURITY_NOTHING_STACKED
-               bool "Use no 'extreme' security module"
-       help
-         Add neither the SELinux security module nor the Smack security
-         module to the stack.
-         Please be sure your user space code does not require either of
-         these security modules.
+                 Incompatible with SeLinux being stacked.
 
+                 If you are unsure how to answer this question, answer N.
 endchoice
 
 config SECURITY_TOMOYO_STACKED