Skip to content

Commit 614efa1

Browse files
backslashxxTashar02
authored andcommitted
drivers: kernelsu: core_hook: /odm handling
We move the folder out of system if it exists in real filesystem and it is not a symlink. This is already supported on init_event.rs so only handle_partition logic was needed to make it happen Since KernelSU is using overlayfs, we need to move these out. Signed-off-by: backslashxx <[email protected]> Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
1 parent 5dd0d40 commit 614efa1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/kernelsu/core_hook.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old)
649649

650650
// fixme: use `collect_mounts` and `iterate_mount` to iterate all mountpoint and
651651
// filter the mountpoint whose target is `/data/adb`
652+
try_umount("/odm", true, 0);
652653
try_umount("/system", true, 0);
653654
try_umount("/vendor", true, 0);
654655
try_umount("/product", true, 0);

0 commit comments

Comments
 (0)