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)
commitd5a4502e9efa534212484fd691339f6469cf95ff
treeb1cfbcc8ced47a44c4f7d7492ddd29f598c24b6a
parentd62c612ef8a66be534a3ada598cfa28d40cd0b3c
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