Message ID | 20210909111409.14425-1-wwfq@yandex-team.ru |
---|---|
State | New |
Headers | show |
Series | ipv6: enable net.ipv6.route sysctls in network namespace | expand |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index b6ddf23..de85e3b 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -6415,10 +6415,6 @@ struct ctl_table * __net_init ipv6_route_sysctl_init(struct net *net) table[8].data = &net->ipv6.sysctl.ip6_rt_min_advmss; table[9].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval; table[10].data = &net->ipv6.sysctl.skip_notify_on_dev_down; - - /* Don't export sysctls to unprivileged users */ - if (net->user_ns != &init_user_ns) - table[0].procname = NULL; } return table;