@@ -32,6 +32,17 @@ config SECURITY
If you are unsure how to answer this question, answer N.
+config SECURITY_HOOK_LIKELY
+ bool "LSM hooks are likely to be initialized"
+ depends on SECURITY && EXPERT
+ default SECURITY_SELINUX || SECURITY_SMACK || SECURITY_TOMOYO || SECURITY_APPARMOR
+ help
+ This controls the behaviour of the static keys that guard LSM hooks.
+ If LSM hooks are likely to be initialized by LSMs, then one gets
+ better performance by enabling this option. However, if the system is
+ using an LSM where hooks are much likely to be disabled, one gets
+ better performance by disabling this config.
+
config SECURITYFS
bool "Enable the securityfs filesystem"
help