apparmor: fix SECURITY_APPARMOR_HASH_DEFAULT parameter handling
[deliverable/linux.git] / security / apparmor / lsm.c
index 3be30c701bfab4030f11a652992c26423aba4ddf..41b8cb115801724172ce48cbb3ac6b3d96a8d6f6 100644 (file)
@@ -671,9 +671,11 @@ enum profile_mode aa_g_profile_mode = APPARMOR_ENFORCE;
 module_param_call(mode, param_set_mode, param_get_mode,
                  &aa_g_profile_mode, S_IRUSR | S_IWUSR);
 
+#ifdef CONFIG_SECURITY_APPARMOR_HASH
 /* whether policy verification hashing is enabled */
-bool aa_g_hash_policy = CONFIG_SECURITY_APPARMOR_HASH_DEFAULT;
+bool aa_g_hash_policy = IS_ENABLED(CONFIG_SECURITY_APPARMOR_HASH_DEFAULT);
 module_param_named(hash_policy, aa_g_hash_policy, aabool, S_IRUSR | S_IWUSR);
+#endif
 
 /* Debug mode */
 bool aa_g_debug;
This page took 0.043216 seconds and 5 git commands to generate.