]> git.baikalelectronics.ru Git - kernel.git/commit
netns: enable to inherit devconf from current netns
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 13 May 2020 13:58:43 +0000 (15:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 May 2020 20:46:37 +0000 (13:46 -0700)
commit6eaf0942823d696aa11a33ab777aa8a5369c76de
tree929d4468b5d8211cf9263e3c82e20459e5d26958
parentb327bf3e2fee9cdfe6b13b9655ecb6c46e56a1bb
netns: enable to inherit devconf from current netns

The goal is to be able to inherit the initial devconf parameters from the
current netns, ie the netns where this new netns has been created.

This is useful in a containers environment where /proc/sys is read only.
For example, if a pod is created with specifics devconf parameters and has
the capability to create netns, the user expects to get the same parameters
than his 'init_net', which is not the real init_net in this case.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/admin-guide/sysctl/net.rst
net/core/sysctl_net_core.c
net/ipv4/devinet.c
net/ipv6/addrconf.c