Skip to content

Commit

Permalink
Try umount /sbin in kernel (#1257)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ylarod authored Jan 6, 2024
1 parent 30e0085 commit e3e4d2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/core_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e3e4d2e

Please sign in to comment.