From 95044bb551062c18fc1639af3b40afe476a6c188 Mon Sep 17 00:00:00 2001 From: weishu Date: Mon, 22 May 2023 10:32:20 +0800 Subject: [PATCH] kernel: fix incorrect prune uid in allowlist for work profile app. close #535 --- kernel/uid_observer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/uid_observer.c b/kernel/uid_observer.c index 90e96b4b..b0a6c6f2 100644 --- a/kernel/uid_observer.c +++ b/kernel/uid_observer.c @@ -29,7 +29,7 @@ static bool is_uid_exist(uid_t uid, void *data) bool exist = false; list_for_each_entry (np, list, list) { - if (np->uid == uid) { + if (np->uid % 100000 == uid) { exist = true; break; }