]> git.baikalelectronics.ru Git - kernel.git/commit
netns: Register net/core/ sysctls at read-only root.
authorPavel Emelyanov <xemul@openvz.org>
Mon, 19 May 2008 20:49:52 +0000 (13:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 May 2008 20:49:52 +0000 (13:49 -0700)
commitb53e081d3d1655c2b7348989949d1f1adf18cff9
treeb1cfbcc8ced47a44c4f7d7492ddd29f598c24b6a
parent275d77fc9e83e6f31a6ac7743c81c26167d3948d
netns: Register net/core/ sysctls at read-only root.

Most of the net/core/xxx sysctls are read-only now, but this
goal is achieved with excessive memory consumption in each
namespace - the whole table is cloned and most of the entries
in it are ~= 0222.

Split it into two parts and register (the largest) one at the
read-only root.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sysctl_net_core.c