Skip to content

Commit cb7f414

Browse files
authored
kernel: guard "umount for uid" logprint with CONFIG_KSU_DEBUG (#1519)
Its too spammy to be on non-debug mode.
1 parent 858ec91 commit cb7f414

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/core_hook.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,9 +517,11 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old)
517517
current->pid);
518518
return 0;
519519
}
520+
#ifdef CONFIG_KSU_DEBUG
520521
// umount the target mnt
521522
pr_info("handle umount for uid: %d, pid: %d\n", new_uid.val,
522523
current->pid);
524+
#endif
523525

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

0 commit comments

Comments
 (0)