From 6cf8f77b6124125f40d4e3d810cfcecb72c00f6c Mon Sep 17 00:00:00 2001 From: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com> Date: Fri, 11 Apr 2025 20:22:48 +0800 Subject: [PATCH] =?UTF-8?q?Add=20an=20uninstall=20attempt=20for=20the=20?= =?UTF-8?q?=E2=80=9C/data/adb/kpm=E2=80=9D=20path=20in=20the=20kernel=20mo?= =?UTF-8?q?unt=20logic=20to=20enhance=20the=20integrity=20of=20path=20mana?= =?UTF-8?q?gement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/core_hook.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 6db391bd..8b888e43 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -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 // 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/kpm", false, MNT_DETACH, uid); /* For both Legacy KSU and Magic Mount KSU */ ksu_try_umount("/debug_ramdisk", true, 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("/product", true, 0); ksu_try_umount("/data/adb/modules", false, MNT_DETACH); + ksu_try_umount("/data/adb/kpm", false, MNT_DETACH); // try umount ksu temp path ksu_try_umount("/debug_ramdisk", false, MNT_DETACH);