: Make ctl tables for ICMP sysctls per-net.
Subsystems (2)
PATCH 3/4 : Make ctl tables for ICMP sysctls per-net.
Add some flesh to ipv4_sysctl_init_net and ipv4_sysctl_exit_net, i.e. copy the table, alter .data pointers and register it per-net.
Other ipv4_table's sysctls are now global, but this is going to change once sysctl permissions patches migrate from -mm tree to mainline in 2.6.26 merge window :)
--- include/net/netns/ipv4.h | 1 + net/ipv4/sysctl_net_ipv4.c | 138 ++++++++++++++++++++++++++++--------------- 2 files changed, 91 insertions(+), 48 deletions(-)
include/net/netns/ipv4.h +1 -0
@@ -17,6 +17,7 @@ struct netns_ipv4 {#ifdef CONFIG_SYSCTL struct ctl_table_header *forw_hdr;struct ctl_table_header *frags_hdr; +struct ctl_table_header *ipv4_hdr;#endif struct ipv4_devconf *devconf_all;struct ipv4_devconf *devconf_dflt;
net/ipv4/sysctl_net_ipv4.c +90 -48
167 lines not on this page · raw message
Signature · 1 line
1.5.3.4
From: Pavel Emelyanov <[email protected]>
Date: Wed, 26 Mar 2008 11:55:52 +0300
Quoted 8 lines
Add some flesh to
ipv4_sysctl_init_netandipv4_sysctl_exit_net, i.e. copy the table, alter .data pointers and register it per-net.Other ipv4_table's sysctls are now global, but this is going to change once sysctl permissions patches migrate from -mm tree to mainline in 2.6.26 merge window :)
Signed-off-by Pavel Emelyanov <[email protected]>
Applied.