diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 2f8f9e78..abd82b48 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -903,6 +903,7 @@ static struct security_hook_list ksu_hooks[] = { #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0) || \ defined(CONFIG_IS_HW_HISI) || defined(CONFIG_KSU_ALLOWLIST_WORKAROUND) LSM_HOOK_INIT(key_permission, ksu_key_permission) +#endif }; void __init ksu_lsm_hook_init(void)