]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Disallow non-namespace aware protocols to register.
authorDavid S. Miller <davem@davemloft.net>
Tue, 5 Feb 2013 19:42:23 +0000 (14:42 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Feb 2013 19:42:23 +0000 (14:42 -0500)
commit266e9a163e01b756ae733a3612b136f09027d882
tree2300023f8d0fa943725e1b4ea3b2b95c91de4430
parent426fad6d7025c2eb58a75b9759ffc9f55b14256d
ipv4: Disallow non-namespace aware protocols to register.

All in-tree ipv4 protocol implementations are now namespace
aware.  Therefore all the run-time checks are superfluous.

Reject registry of any non-namespace aware ipv4 protocol.
Eventually we'll remove prot->netns_ok and this registry
time check as well.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c
net/ipv4/ip_input.c
net/ipv4/protocol.c