]> git.baikalelectronics.ru Git - kernel.git/commit
[NETNS][IPV6]: Make mld_max_msf readonly in other namespaces.
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 10 Jan 2008 10:57:43 +0000 (02:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:01:19 +0000 (15:01 -0800)
commit07e55bf968d0155fd1243457cef7d483f938467e
tree6cff76a24da35a80106dadfa8669a4a92b971f77
parent76eed979c35bd5ec4b2c7444e14811bd6bcdafcf
[NETNS][IPV6]: Make mld_max_msf readonly in other namespaces.

The mld_max_msf protects the system with a maximum allowed multicast
source filters. Making this variable per namespace can be potentially
an problem if someone inside a namespace set it to a big value, that
will impact the whole system including other namespaces.

I don't see any benefits to have it per namespace for now, so in order
to keep a directory entry in a newly created namespace, I make it
read-only when we are not in the initial network namespace.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sysctl_net_ipv6.c