IPVS netns BUG, register sysctl for root ns
authorHans Schillstrom <hans.schillstrom@ericsson.com>
Mon, 24 Jan 2011 14:14:41 +0000 (15:14 +0100)
committerSimon Horman <horms@verge.net.au>
Tue, 25 Jan 2011 02:13:08 +0000 (12:13 +1000)
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 <hans.schillstrom@ericsson.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_ctl.c

index 68b8033a96f7044928eb0009c5d99129c977286f..98df59a12453d8cf35fee45b45074e5c1071ee96 100644 (file)
@@ -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);