Add an uninstall attempt for the “/data/adb/kpm” path in the kernel mount logic to enhance the integrity of path management
This commit is contained in:
@@ -1021,6 +1021,7 @@ void susfs_try_umount_all(uid_t uid) {
|
|||||||
// - For '/data/adb/modules' we pass 'false' here because it is a loop device that we can't determine whether
|
// - For '/data/adb/modules' we pass 'false' here because it is a loop device that we can't determine whether
|
||||||
// its dev_name is KSU or not, and it is safe to just umount it if it is really a mountpoint
|
// its dev_name is KSU or not, and it is safe to just umount it if it is really a mountpoint
|
||||||
ksu_try_umount("/data/adb/modules", false, MNT_DETACH, uid);
|
ksu_try_umount("/data/adb/modules", false, MNT_DETACH, uid);
|
||||||
|
ksu_try_umount("/data/adb/kpm", false, MNT_DETACH, uid);
|
||||||
/* For both Legacy KSU and Magic Mount KSU */
|
/* For both Legacy KSU and Magic Mount KSU */
|
||||||
ksu_try_umount("/debug_ramdisk", true, MNT_DETACH, uid);
|
ksu_try_umount("/debug_ramdisk", true, MNT_DETACH, uid);
|
||||||
ksu_try_umount("/sbin", false, MNT_DETACH, uid);
|
ksu_try_umount("/sbin", false, MNT_DETACH, uid);
|
||||||
@@ -1123,6 +1124,7 @@ out_ksu_try_umount:
|
|||||||
ksu_try_umount("/vendor", true, 0);
|
ksu_try_umount("/vendor", true, 0);
|
||||||
ksu_try_umount("/product", true, 0);
|
ksu_try_umount("/product", true, 0);
|
||||||
ksu_try_umount("/data/adb/modules", false, MNT_DETACH);
|
ksu_try_umount("/data/adb/modules", false, MNT_DETACH);
|
||||||
|
ksu_try_umount("/data/adb/kpm", false, MNT_DETACH);
|
||||||
|
|
||||||
// try umount ksu temp path
|
// try umount ksu temp path
|
||||||
ksu_try_umount("/debug_ramdisk", false, MNT_DETACH);
|
ksu_try_umount("/debug_ramdisk", false, MNT_DETACH);
|
||||||
|
|||||||
Reference in New Issue
Block a user