Skip to content

Commit 9711950

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 b3a64ec commit 9711950

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
@@ -1299,14 +1299,13 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old)
12991299
// filter the mountpoint whose target is `/data/adb`
13001300
try_umount("/odm", true, 0);
13011301
try_umount("/system", true, 0);
1302-
try_umount("/system_ext", true, 0);
13031302
try_umount("/vendor", true, 0);
13041303
try_umount("/product", true, 0);
1304+
try_umount("/system_ext", true, 0);
13051305
try_umount("/data/adb/modules", false, MNT_DETACH);
13061306

13071307
// try umount ksu temp path
13081308
try_umount("/debug_ramdisk", false, MNT_DETACH);
1309-
try_umount("/sbin", false, MNT_DETACH);
13101309

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

0 commit comments

Comments
 (0)