Skip to content

Commit 15a2645

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 47f824c commit 15a2645

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
@@ -1317,14 +1317,13 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old)
13171317
// filter the mountpoint whose target is `/data/adb`
13181318
try_umount("/odm", true, 0);
13191319
try_umount("/system", true, 0);
1320-
try_umount("/system_ext", true, 0);
13211320
try_umount("/vendor", true, 0);
13221321
try_umount("/product", true, 0);
1322+
try_umount("/system_ext", true, 0);
13231323
try_umount("/data/adb/modules", false, MNT_DETACH);
13241324

13251325
// try umount ksu temp path
13261326
try_umount("/debug_ramdisk", false, MNT_DETACH);
1327-
try_umount("/sbin", false, MNT_DETACH);
13281327

13291328
// try umount hosts file
13301329
try_umount("/system/etc/hosts", false, MNT_DETACH);

0 commit comments

Comments
 (0)