sysctl: treewide: constify ctl_table_header::ctl_table_arg
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 18 Apr 2024 09:40:08 +0000 (11:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Apr 2024 07:56:31 +0000 (08:56 +0100)
commitbfa858f220ab8c950dd3e1310fee61950d0ecdae
tree2b500951abfbfd794f0371ddfa313f558a4d8561
parent8442f8ba269f8f7321fba47c4fd1dc22402d8975
sysctl: treewide: constify ctl_table_header::ctl_table_arg

To be able to constify instances of struct ctl_tables it is necessary to
remove ways through which non-const versions are exposed from the
sysctl core.
One of these is the ctl_table_arg member of struct ctl_table_header.

Constify this reference as a prerequisite for the full constification of
struct ctl_table instances.
No functional change.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
27 files changed:
drivers/net/vrf.c
include/linux/sysctl.h
ipc/ipc_sysctl.c
ipc/mq_sysctl.c
kernel/ucount.c
net/ax25/sysctl_net_ax25.c
net/bridge/br_netfilter_hooks.c
net/core/sysctl_net_core.c
net/ieee802154/6lowpan/reassembly.c
net/ipv4/devinet.c
net/ipv4/ip_fragment.c
net/ipv4/route.c
net/ipv4/sysctl_net_ipv4.c
net/ipv4/xfrm4_policy.c
net/ipv6/addrconf.c
net/ipv6/netfilter/nf_conntrack_reasm.c
net/ipv6/reassembly.c
net/ipv6/sysctl_net_ipv6.c
net/ipv6/xfrm6_policy.c
net/mpls/af_mpls.c
net/mptcp/ctrl.c
net/netfilter/nf_conntrack_standalone.c
net/netfilter/nf_log.c
net/sctp/sysctl.c
net/smc/smc_sysctl.c
net/unix/sysctl_net_unix.c
net/xfrm/xfrm_sysctl.c