kernel: fix incorrect prune uid for work profile app, close #587

This commit is contained in:
weishu
2023-06-05 17:41:35 +08:00
parent 27ccfa6395
commit 37dc9a27a7

View File

@@ -29,7 +29,7 @@ static bool is_uid_exist(uid_t uid, void *data)
bool exist = false; bool exist = false;
list_for_each_entry (np, list, list) { list_for_each_entry (np, list, list) {
if (np->uid % 100000 == uid) { if (np->uid == uid % 100000) {
exist = true; exist = true;
break; break;
} }
@@ -136,4 +136,4 @@ int ksu_uid_observer_init()
int ksu_uid_observer_exit() int ksu_uid_observer_exit()
{ {
return 0; return 0;
} }