From 450dbf14fc363700fc5a56978ec857d3c88ab972 Mon Sep 17 00:00:00 2001 From: Ylarod Date: Sun, 2 Nov 2025 22:20:56 +0800 Subject: [PATCH] kernel: disable setuid debug log --- kernel/core_hook.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 61e505d0..cff3f788 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -577,7 +577,7 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old) kuid_t new_uid = new->uid; kuid_t old_uid = old->uid; - pr_info("handle_setuid from %d to %d\n", old_uid.val, new_uid.val); + // pr_info("handle_setuid from %d to %d\n", old_uid.val, new_uid.val); if (0 != old_uid.val) { // old process is not root, ignore it. @@ -585,7 +585,7 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old) } if (!is_appuid(new_uid) || is_unsupported_uid(new_uid.val)) { - pr_info("handle setuid ignore non application or isolated uid: %d\n", new_uid.val); + // pr_info("handle setuid ignore non application or isolated uid: %d\n", new_uid.val); return 0; }