Skip to content

Commit

Permalink
kernel: guard "umount for uid" logprint with CONFIG_KSU_DEBUG (#1519)
Browse files Browse the repository at this point in the history
Its too spammy to be on non-debug mode.
  • Loading branch information
Jprimero15 authored Mar 24, 2024
1 parent 858ec91 commit cb7f414
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 @@ -517,9 +517,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 cb7f414

Please sign in to comment.