kernel: Fix shell permission under KSU_DEBUG

This commit is contained in:
weishu
2023-06-06 21:05:37 +08:00
parent be44fad288
commit 5b27f6c010

View File

@@ -77,6 +77,7 @@ static void ksu_grant_root_to_shell()
.current_uid = 2000, .current_uid = 2000,
}; };
strcpy(profile.key, "com.android.shell"); strcpy(profile.key, "com.android.shell");
strcpy(profile.rp_config.profile.selinux_domain, "u:r:su:s0");
ksu_set_app_profile(&profile, false); ksu_set_app_profile(&profile, false);
} }
#endif #endif