Skip to content

Commit df82c3c

Browse files
aviraxpMrShockWAVEog
authored andcommitted
Clean up umount targets (tiann/KernelSU#2386)
-move /system_ext after /product (ksu_handle_setuid) -https://github.com/tiann/KernelSU
1 parent 95f1941 commit df82c3c

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
@@ -1272,14 +1272,13 @@ LSM_HANDLER_TYPE ksu_handle_setuid(struct cred *new, const struct cred *old)
12721272
// filter the mountpoint whose target is `/data/adb`
12731273
try_umount("/odm", true, 0);
12741274
try_umount("/system", true, 0);
1275-
try_umount("/system_ext", true, 0);
12761275
try_umount("/vendor", true, 0);
12771276
try_umount("/product", true, 0);
1277+
try_umount("/system_ext", true, 0);
12781278
try_umount("/data/adb/modules", false, MNT_DETACH);
12791279

12801280
// try umount ksu temp path
12811281
try_umount("/debug_ramdisk", false, MNT_DETACH);
1282-
try_umount("/sbin", false, MNT_DETACH);
12831282

12841283
// try umount hosts file
12851284
try_umount("/system/etc/hosts", false, MNT_DETACH);

0 commit comments

Comments
 (0)