Skip to content

Commit

Permalink
supercall: Fix super key authentication
Browse files Browse the repository at this point in the history
Signed-off-by: GarfieldHan <[email protected]>
  • Loading branch information
pomelohan committed Jun 11, 2024
1 parent 24b9669 commit e6450bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/patch/common/supercall.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e6450bd

Please sign in to comment.