diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 88728768..6f04dc16 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -690,7 +690,7 @@ static int ksu_inode_permission(struct inode *inode, int mask) #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0) || \ defined(CONFIG_IS_HW_HISI) || \ defined(CONFIG_KSU_ALLOWLIST_WORKAROUND) -static int ksu_key_permission(key_ref_t key_ref, const struct cred *cred, +int ksu_key_permission(key_ref_t key_ref, const struct cred *cred, unsigned perm) { if (init_session_keyring != NULL) {