Skip to content

Commit

Permalink
kernel: core_hook: no need for umount
Browse files Browse the repository at this point in the history
  • Loading branch information
backslashxx committed Feb 18, 2025
1 parent 713fa2e commit 2b07ce8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions kernel/core_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,12 +579,6 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old)
current->pid);
#endif

// fixme: use `collect_mounts` and `iterate_mount` to iterate all mountpoint and
// filter the mountpoint whose target is `/data/adb`
try_umount("/system", true, 0);
try_umount("/vendor", true, 0);
try_umount("/product", true, 0);
try_umount("/system_ext", true, 0);
try_umount("/data/adb/modules", false, MNT_DETACH);

// try umount ksu temp path
Expand Down

0 comments on commit 2b07ce8

Please sign in to comment.