From 5b27f6c0100b1fada521d269e3a7d20ef4a96c0e Mon Sep 17 00:00:00 2001 From: weishu Date: Tue, 6 Jun 2023 21:05:37 +0800 Subject: [PATCH] kernel: Fix shell permission under KSU_DEBUG --- kernel/allowlist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/allowlist.c b/kernel/allowlist.c index 83ddc867..09bab3dc 100644 --- a/kernel/allowlist.c +++ b/kernel/allowlist.c @@ -77,6 +77,7 @@ static void ksu_grant_root_to_shell() .current_uid = 2000, }; strcpy(profile.key, "com.android.shell"); + strcpy(profile.rp_config.profile.selinux_domain, "u:r:su:s0"); ksu_set_app_profile(&profile, false); } #endif