From: Hans Schillstrom Date: Mon, 24 Jan 2011 14:14:41 +0000 (+0100) Subject: IPVS netns BUG, register sysctl for root ns X-Git-Tag: MMI-PSA29.97-13-9~20520^2~10^2~83 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=07924709f68b3f4f701d4efd6acd18ca4ee14de3;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git IPVS netns BUG, register sysctl for root ns The newly created table was not used when register sysctl for a new namespace. I.e. sysctl doesn't work for other than root namespace (init_net) Signed-off-by: Hans Schillstrom Signed-off-by: Simon Horman --- diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index 68b8033a96f7..98df59a12453 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/netfilter/ipvs/ip_vs_ctl.c @@ -3556,7 +3556,7 @@ int __net_init __ip_vs_control_init(struct net *net) ipvs->sysctl_hdr = register_net_sysctl_table(net, net_vs_ctl_path, - vs_vars); + tbl); if (ipvs->sysctl_hdr == NULL) goto err_reg; ip_vs_new_estimator(net, ipvs->tot_stats);