kernel: avoding other root process being kprobed

This commit is contained in:
weishu
2022-12-21 20:50:55 +07:00
parent 475262afb7
commit 9aacf2a64d
3 changed files with 12 additions and 2 deletions

View File

@@ -91,8 +91,8 @@ bool ksu_is_allow_uid(uid_t uid) {
struct list_head *pos = NULL;
if (uid == 0) {
// already root
return true;
// already root, but only allow our domain.
return is_ksu_domain();
}
list_for_each(pos, &allow_list) {