diff --git a/kernel/Kconfig b/kernel/Kconfig index a3d61c5f..44e8b235 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -61,6 +61,7 @@ menu "KernelSU - SUSFS" config KSU_SUSFS bool "KernelSU addon - SUSFS" depends on KSU + depends on THREAD_INFO_IN_TASK default y help Patch and Enable SUSFS to kernel with KernelSU. diff --git a/kernel/core_hook.c b/kernel/core_hook.c index caf114c2..ddb0626d 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -1244,7 +1244,7 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old) // the detection, really big helps here! else if (new_uid.val >= 90000 && new_uid.val < 1000000 && susfs_is_umount_for_zygote_iso_service_enabled) { task_lock(current); - current->susfs_task_state |= TASK_STRUCT_NON_ROOT_USER_APP_PROC; + susfs_set_current_non_root_user_app_proc(); task_unlock(current); goto out_susfs_try_umount_all; } @@ -1263,7 +1263,7 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old) #ifdef CONFIG_KSU_SUSFS else { task_lock(current); - current->susfs_task_state |= TASK_STRUCT_NON_ROOT_USER_APP_PROC; + susfs_set_current_non_root_user_app_proc(); task_unlock(current); } #endif