Revert "kernel: Remove CONFIG_KSU_MANUAL_SU protection"

This reverts commit fa229b23a4.
This commit is contained in:
ShirkNeko
2025-11-05 01:50:00 +08:00
parent 1e0590aeb2
commit ab3ff2699c
7 changed files with 55 additions and 0 deletions

View File

@@ -527,6 +527,7 @@ void ksu_allowlist_exit(void)
mutex_unlock(&allowlist_mutex);
}
#ifdef CONFIG_KSU_MANUAL_SU
bool ksu_temp_grant_root_once(uid_t uid)
{
struct app_profile profile = {
@@ -602,3 +603,4 @@ void ksu_temp_revoke_root_once(uid_t uid)
persistent_allow_list();
pr_info("pending_root: UID=%d removed and persist updated\n", uid);
}
#endif