From a437f69586326b18e4800439e31fc6b3ecc5141c Mon Sep 17 00:00:00 2001 From: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com> Date: Fri, 20 Jun 2025 00:38:31 +0800 Subject: [PATCH] kernel: change ksu_key_permission to public for broader access --- kernel/core_hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {