]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
UBUNTU: SAUCE: LSM stacking: fixup apparmor stacking enablement
authorJohn Johansen <john.johansen@canonical.com>
Wed, 27 Sep 2017 06:10:17 +0000 (02:10 -0400)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 10 Apr 2018 18:06:16 +0000 (13:06 -0500)
BugLink: http://bugs.launchpad.net/bugs/1763062
AppArmor doesn't need to register twice.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
security/apparmor/lsm.c

index d7fa61ab8d642de5705f0a627221b122a008a3cf..92721e944ddd60b441f5d83840bdb029e8ad179c 100644 (file)
@@ -1539,9 +1539,7 @@ static int __init apparmor_init(void)
                return 0;
        }
 
-       if (!apparmor_enabled ||
-           !security_module_enable("apparmor",
-                               IS_ENABLED(CONFIG_SECURITY_APPARMOR_STACKED))) {
+       if (!apparmor_enabled) {
                aa_info_message("AppArmor disabled by boot time parameter");
                apparmor_enabled = false;
                return 0;