[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231125-const-sysctl-v1-4-5e881b0e0290@weissschuh.net>
Date: Sat, 25 Nov 2023 13:52:53 +0100
From: Thomas Weißschuh <linux@...ssschuh.net>
To: Kees Cook <keescook@...omium.org>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
Luis Chamberlain <mcgrof@...nel.org>,
Iurii Zaikin <yzaikin@...gle.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Joel Granados <j.granados@...sung.com>
Cc: linux-hardening@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org,
Thomas Weißschuh <linux@...ssschuh.net>
Subject: [PATCH RFC 4/7] net: sysctl: add new sysctl table handler to debug
message
The sysctl core introduce an alternative handler function.
Log it in the debug message, too.
Signed-off-by: Thomas Weißschuh <linux@...ssschuh.net>
---
net/sysctl_net.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/net/sysctl_net.c b/net/sysctl_net.c
index 051ed5f6fc93..29d871097ddc 100644
--- a/net/sysctl_net.c
+++ b/net/sysctl_net.c
@@ -132,8 +132,9 @@ static void ensure_safe_net_sysctl(struct net *net, const char *path,
unsigned long addr;
const char *where;
- pr_debug(" procname=%s mode=%o proc_handler=%ps data=%p\n",
- ent->procname, ent->mode, ent->proc_handler, ent->data);
+ pr_debug(" procname=%s mode=%o proc_handler=%ps/%ps data=%p\n",
+ ent->procname, ent->mode, ent->proc_handler,
+ ent->proc_handler_new, ent->data);
/* If it's not writable inside the netns, then it can't hurt. */
if ((ent->mode & 0222) == 0) {
--
2.43.0
Powered by blists - more mailing lists