KernelSU: Fixed wrong TRY_UMOUNT #ifdef guard
Co-authored-by: simonpunk <simonpunk2016@gmail.com>
This commit is contained in:
@@ -304,17 +304,16 @@ int ksu_handle_setresuid(uid_t ruid, uid_t euid, uid_t suid){
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
do_umount:
|
do_umount:
|
||||||
#ifdef CONFIG_KSU_SUSFS_TRY_UMOUNT
|
|
||||||
if (!ksu_kernel_umount_enabled || !ksu_module_mounted) {
|
if (!ksu_kernel_umount_enabled || !ksu_module_mounted) {
|
||||||
goto skip_try_umount;
|
goto skip_try_umount;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#ifdef CONFIG_KSU_SUSFS_TRY_UMOUNT
|
||||||
pr_info("susfs: running susfs_try_umount_all() for uid: %u\n", new_uid);
|
pr_info("susfs: running susfs_try_umount_all() for uid: %u\n", new_uid);
|
||||||
susfs_try_umount_all();
|
susfs_try_umount_all();
|
||||||
|
#endif // #ifdef CONFIG_KSU_SUSFS_TRY_UMOUNT
|
||||||
|
|
||||||
skip_try_umount:
|
skip_try_umount:
|
||||||
#endif // #ifdef CONFIG_KSU_SUSFS_TRY_UMOUNT
|
|
||||||
|
|
||||||
get_task_struct(current);
|
get_task_struct(current);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user