[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240423-sysctl-const-handler-v3-2-e0beccb836e2@weissschuh.net>
Date: Tue, 23 Apr 2024 09:54:37 +0200
From: Thomas Weißschuh <linux@...ssschuh.net>
To: Luis Chamberlain <mcgrof@...nel.org>,
Joel Granados <j.granados@...sung.com>, Kees Cook <keescook@...omium.org>
Cc: Eric Dumazet <edumazet@...gle.com>, Dave Chinner <david@...morbit.com>,
linux-fsdevel@...r.kernel.org, netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-s390@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-riscv@...ts.infradead.org,
linux-mm@...ck.org, linux-security-module@...r.kernel.org,
bpf@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
linux-xfs@...r.kernel.org, linux-trace-kernel@...r.kernel.org,
linux-perf-users@...r.kernel.org, netfilter-devel@...r.kernel.org,
coreteam@...filter.org, kexec@...ts.infradead.org,
linux-hardening@...r.kernel.org, bridge@...ts.linux.dev,
lvs-devel@...r.kernel.org, linux-rdma@...r.kernel.org,
rds-devel@....oracle.com, linux-sctp@...r.kernel.org,
linux-nfs@...r.kernel.org, apparmor@...ts.ubuntu.com,
Thomas Weißschuh <linux@...ssschuh.net>
Subject: [PATCH v3 02/11] cgroup: bpf: constify ctl_table arguments and
fields
In a future commit the sysctl core will only use
"const struct ctl_table". As a preparation for that adapt the cgroup-bpf
code.
Signed-off-by: Thomas Weißschuh <linux@...ssschuh.net>
---
include/linux/filter.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/filter.h b/include/linux/filter.h
index 7a27f19bf44d..4eada55a2df8 100644
--- a/include/linux/filter.h
+++ b/include/linux/filter.h
@@ -1404,7 +1404,7 @@ struct bpf_sock_ops_kern {
struct bpf_sysctl_kern {
struct ctl_table_header *head;
- struct ctl_table *table;
+ const struct ctl_table *table;
void *cur_val;
size_t cur_len;
void *new_val;
--
2.44.0
Powered by blists - more mailing lists