|
@@ -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;
|