kernel: fix incorrect prune uid in allowlist for work profile app. close #535

This commit is contained in:
weishu
2023-05-22 10:32:20 +08:00
parent b56448a929
commit 95044bb551

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 == uid) { if (np->uid % 100000 == uid) {
exist = true; exist = true;
break; break;
} }