]> www.infradead.org Git - users/willy/linux.git/commit
net: make net.core.{r,w}mem_{default,max} namespaced
authorMatteo Croce <teknoraver@meta.com>
Thu, 30 May 2024 23:27:21 +0000 (01:27 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 1 Jun 2024 23:03:21 +0000 (16:03 -0700)
commit19249c0724f2048ab68179eac69004947b07d431
treea5104bc6cf306aefb4e2db3374eeb8e7f01bfa2b
parent165f87691a898aea113923224c269bae14749ebc
net: make net.core.{r,w}mem_{default,max} namespaced

The following sysctl are global and can't be read from a netns:

net.core.rmem_default
net.core.rmem_max
net.core.wmem_default
net.core.wmem_max

Make the following sysctl parameters available readonly from within a
network namespace, allowing a container to read them.

Signed-off-by: Matteo Croce <teknoraver@meta.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Shakeel Butt <shakeel.butt@linux.dev>
Link: https://lore.kernel.org/r/20240530232722.45255-2-technoboy85@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/sysctl_net_core.c