Skip to content

Commit 99e4999

Browse files
aviraxppershoot
authored andcommitted
Clean up umount targets (tiann/KernelSU#2386)
-move /system_ext after /product (ksu_handle_setuid) -https://github.com/tiann/KernelSU
1 parent a690723 commit 99e4999

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kernel/core_hook.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,14 +1298,13 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old)
12981298
// filter the mountpoint whose target is `/data/adb`
12991299
try_umount("/odm", true, 0);
13001300
try_umount("/system", true, 0);
1301-
try_umount("/system_ext", true, 0);
13021301
try_umount("/vendor", true, 0);
13031302
try_umount("/product", true, 0);
1303+
try_umount("/system_ext", true, 0);
13041304
try_umount("/data/adb/modules", false, MNT_DETACH);
13051305

13061306
// try umount ksu temp path
13071307
try_umount("/debug_ramdisk", false, MNT_DETACH);
1308-
try_umount("/sbin", false, MNT_DETACH);
13091308

13101309
// try umount hosts file
13111310
try_umount("/system/etc/hosts", false, MNT_DETACH);

0 commit comments

Comments
 (0)