From b37dd820b44c9630a00f6e4b358df1fb7c404673 Mon Sep 17 00:00:00 2001 From: ThePedroo Date: Tue, 31 Mar 2026 22:02:23 -0300 Subject: [PATCH] allow uid 0 bypass key auth This commit makes so that root processes (such as magisk modules) can interact with KernelPatch through supercall without needing to have UID 0 in su allow list or with key authentication. This extends capabilities and allows a better use of KernelPatch capabilities and recognition. --- kernel/patch/common/supercall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/patch/common/supercall.c b/kernel/patch/common/supercall.c index 21e46509..012a8138 100644 --- a/kernel/patch/common/supercall.c +++ b/kernel/patch/common/supercall.c @@ -399,7 +399,7 @@ static void before(hook_fargs6_t *args, void *udata) } else if (!strcmp("su", key)) { uid_t uid = current_uid(); if (!is_su_allow_uid(uid)) return; - } else { + } else if (current_uid() != 0) { return; }