]> git.karo-electronics.de Git - linux-beck.git/commitdiff
apparmor: enable users to query whether apparmor is enabled
authorJohn Johansen <john.johansen@canonical.com>
Thu, 11 Jul 2013 04:03:43 +0000 (21:03 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 14 Aug 2013 18:42:05 +0000 (11:42 -0700)
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/lsm.c

index 2e2a0dd4a73f1234425ded75027baea3b1e0b03e..96506dfe51ec32e0bc8c700cfd9e1bbecf7953cd 100644 (file)
@@ -742,7 +742,7 @@ module_param_named(paranoid_load, aa_g_paranoid_load, aabool,
 
 /* Boot time disable flag */
 static bool apparmor_enabled = CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE;
-module_param_named(enabled, apparmor_enabled, aabool, S_IRUSR);
+module_param_named(enabled, apparmor_enabled, bool, S_IRUGO);
 
 static int __init apparmor_enabled_setup(char *str)
 {