Skip to content

Commit

Permalink
kernelsu: clear securebits
Browse files Browse the repository at this point in the history
fix adb shell cannot escape to root after tiann/KernelSU#2381
  • Loading branch information
5ec1cff authored and pascua28 committed Mar 2, 2025
1 parent ab619b8 commit 622e192
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/kernelsu/core_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ void ksu_escape_to_root(void)
cred->fsgid.val = profile->gid;
cred->sgid.val = profile->gid;
cred->egid.val = profile->gid;
cred->securebits = 0;

BUILD_BUG_ON(sizeof(profile->capabilities.effective) !=
sizeof(kernel_cap_t));
Expand Down

0 comments on commit 622e192

Please sign in to comment.