Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
kernel: guard "umount for uid" logprint with CONFIG_KSU_DEBUG (tiann#…
Browse files Browse the repository at this point in the history
…1519)

Its too spammy to be on non-debug mode.
  • Loading branch information
Jprimero15 authored and WenHao2130 committed Jun 1, 2024
1 parent fb6272c commit f1ce79a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/core_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,9 +579,11 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old)
current->pid);
return 0;
}
#ifdef CONFIG_KSU_DEBUG
// umount the target mnt
pr_info("handle umount for uid: %d, pid: %d\n", new_uid.val,
current->pid);
#endif

// fixme: use `collect_mounts` and `iterate_mount` to iterate all mountpoint and
// filter the mountpoint whose target is `/data/adb`
Expand Down

0 comments on commit f1ce79a

Please sign in to comment.