All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ipv6: enable net.ipv6.route sysctls in network namespace
@ 2021-09-21  6:22 Alexander Kuznetsov
  2021-09-21 13:09 ` Jakub Kicinski
  2021-09-30 14:59 ` Eric W. Biederman
  0 siblings, 2 replies; 7+ messages in thread
From: Alexander Kuznetsov @ 2021-09-21  6:22 UTC (permalink / raw)
  To: netdev; +Cc: zeil

We want to increase route cache size in network namespace
created with user namespace. Currently ipv6 route settings
are disabled for non-initial network namespaces.
Since routes are per network namespace it is safe
to enable these sysctls.

Signed-off-by: Alexander Kuznetsov <wwfq@yandex-team.ru>
Acked-by: Dmitry Yakunin <zeil@yandex-team.ru>
---
 net/ipv6/route.c | 4 ----
 1 file changed, 4 deletions(-)

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;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH] ipv6: enable net.ipv6.route sysctls in network namespace
@ 2021-09-09 11:14 Alexander Kuznetsov
  0 siblings, 0 replies; 7+ messages in thread
From: Alexander Kuznetsov @ 2021-09-09 11:14 UTC (permalink / raw)
  To: netdev; +Cc: zeil

We want to increase route cache size in network namespace
created with user namespace. Currently ipv6 route settings
are disabled for non-initial network namespaces.
Since routes are per network namespace it is safe
to enable these sysctls.

Signed-off-by: Alexander Kuznetsov <wwfq@yandex-team.ru>
Acked-by: Dmitry Yakunin <zeil@yandex-team.ru>
---
 net/ipv6/route.c | 4 ----
 1 file changed, 4 deletions(-)

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;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-09-30 14:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-21  6:22 [PATCH] ipv6: enable net.ipv6.route sysctls in network namespace Alexander Kuznetsov
2021-09-21 13:09 ` Jakub Kicinski
2021-09-21 15:32   ` Florian Westphal
2021-09-25 15:25     ` David Ahern
2021-09-30  8:44   ` Alexander Al. Kuznetsov
2021-09-30 14:59 ` Eric W. Biederman
  -- strict thread matches above, loose matches on Subject: below --
2021-09-09 11:14 Alexander Kuznetsov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.