From e33d3a6e736da680748c6d0c2f9409d8830a9d39 Mon Sep 17 00:00:00 2001 From: 1f2003d5 <2652609017@qq.com> Date: Tue, 11 Jun 2024 21:00:21 +0800 Subject: [PATCH] supercall: Fix super key authentication (#99) Signed-off-by: GarfieldHan <2652609017@qq.com> --- 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 d512fd09..c5a686b3 100644 --- a/kernel/patch/common/supercall.c +++ b/kernel/patch/common/supercall.c @@ -346,7 +346,7 @@ static void before(hook_fargs6_t *args, void *udata) int is_key_auth = 0; - if (auth_superkey(key)) { + if (!auth_superkey(key)) { is_key_auth = 1; } else if (!strcmp("su", key)) { uid_t uid = current_uid();