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>
- 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;
aa_info_message("AppArmor disabled by boot time parameter");
apparmor_enabled = false;
return 0;