]> git.baikalelectronics.ru Git - kernel.git/commit
neigh: only allow init_net to change the default neigh_parms
authorGao feng <gaofeng@cn.fujitsu.com>
Thu, 20 Jun 2013 02:01:33 +0000 (10:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jun 2013 04:13:24 +0000 (21:13 -0700)
commit67bc978d3b134582a66087a1bbe8f10e03fd8241
tree939fa57fa9d7f52dc1341e3d43788a7eff8e157c
parenta6bb36224ad8b2d924583e1c5ee90ad62405ba8d
neigh: only allow init_net to change the default neigh_parms

Though we don't export the /proc/sys/net/ipv[4,6]/neigh/default/
directory to the un-init_net, but we can still use cmd such as
"ip ntable change name arp_cache locktime 129" to change the locktime
of default neigh_parms.

This patch disallows the un-init_net to find out the neigh_table.parms.
So the un-init_net will failed to influence the init_net.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c