Skip to content

Commit

Permalink
kernel: Allow system_server to kill su process
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed Feb 20, 2024
1 parent cbd1844 commit 01b685c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/selinux/rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ void apply_kernelsu_rules()
ksu_allow(db, "system_server", "untrusted_app_all_devpts", "chr_file",
"write");

// Allow system server kill su process
ksu_allow(db, "system_server", KERNEL_SU_DOMAIN, "process", "getpgid");
ksu_allow(db, "system_server", KERNEL_SU_DOMAIN, "process", "sigkill");

rcu_read_unlock();
}

Expand Down

0 comments on commit 01b685c

Please sign in to comment.