From e3e4d2eed49fc1334fae5831b3cd49e084825cf5 Mon Sep 17 00:00:00 2001 From: Ylarod Date: Sat, 6 Jan 2024 08:59:30 +0800 Subject: [PATCH] Try umount `/sbin` in kernel (#1257) --- kernel/core_hook.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 0cfc7872c2fc..998ff5b29e4d 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -569,7 +569,10 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old) try_umount("/vendor", true, 0); try_umount("/product", true, 0); try_umount("/data/adb/modules", false, MNT_DETACH); + + // try umount ksu temp path try_umount("/debug_ramdisk", false, MNT_DETACH); + try_umount("/sbin", false, MNT_DETACH); return 0; }