diff options
author | Vincent Bernat <vincent@bernat.im> | 2014-09-05 09:09:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-09 14:27:09 -0400 |
commit | 49a601589caaf0e93194c0cc9b4ecddbe75dd2d5 (patch) | |
tree | cb4486c3522885f9b6bb61f10960e3b7b27a5b4f /net/ipv4/sysctl_net_ipv4.c | |
parent | afddacc3ccd048c49c7f4f0ad0b6a40730c74715 (diff) |
net/ipv4: bind ip_nonlocal_bind to current netns
net.ipv4.ip_nonlocal_bind sysctl was global to all network
namespaces. This patch allows to set a different value for each
network namespace.
Signed-off-by: Vincent Bernat <vincent@bernat.im>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/sysctl_net_ipv4.c')
-rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index 45d156dacd61..1599966f4639 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c | |||
@@ -286,13 +286,6 @@ static struct ctl_table ipv4_table[] = { | |||
286 | .extra2 = &ip_ttl_max, | 286 | .extra2 = &ip_ttl_max, |
287 | }, | 287 | }, |
288 | { | 288 | { |
289 | .procname = "ip_nonlocal_bind", | ||
290 | .data = &sysctl_ip_nonlocal_bind, | ||
291 | .maxlen = sizeof(int), | ||
292 | .mode = 0644, | ||
293 | .proc_handler = proc_dointvec | ||
294 | }, | ||
295 | { | ||
296 | .procname = "tcp_syn_retries", | 289 | .procname = "tcp_syn_retries", |
297 | .data = &sysctl_tcp_syn_retries, | 290 | .data = &sysctl_tcp_syn_retries, |
298 | .maxlen = sizeof(int), | 291 | .maxlen = sizeof(int), |
@@ -849,6 +842,13 @@ static struct ctl_table ipv4_net_table[] = { | |||
849 | .proc_handler = proc_dointvec, | 842 | .proc_handler = proc_dointvec, |
850 | }, | 843 | }, |
851 | { | 844 | { |
845 | .procname = "ip_nonlocal_bind", | ||
846 | .data = &init_net.ipv4.sysctl_ip_nonlocal_bind, | ||
847 | .maxlen = sizeof(int), | ||
848 | .mode = 0644, | ||
849 | .proc_handler = proc_dointvec | ||
850 | }, | ||
851 | { | ||
852 | .procname = "fwmark_reflect", | 852 | .procname = "fwmark_reflect", |
853 | .data = &init_net.ipv4.sysctl_fwmark_reflect, | 853 | .data = &init_net.ipv4.sysctl_fwmark_reflect, |
854 | .maxlen = sizeof(int), | 854 | .maxlen = sizeof(int), |