From c569d803c528c787245c9dfe92f297ba1c390a1c Mon Sep 17 00:00:00 2001 From: tiann Date: Tue, 18 Apr 2023 09:17:53 +0800 Subject: [PATCH] kernel: don't save allowlist in worker --- kernel/allowlist.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/allowlist.c b/kernel/allowlist.c index 8e445633..d7687306 100644 --- a/kernel/allowlist.c +++ b/kernel/allowlist.c @@ -242,7 +242,12 @@ void ksu_prune_allowlist(bool (*is_uid_exist)(uid_t, void *), void *data) // make sure allow list works cross boot bool persistent_allow_list(void) { +#ifndef MODULE + do_persistent_allow_list(NULL); + return true; +#else return ksu_queue_work(&ksu_save_work); +#endif } bool ksu_load_allow_list(void)