kernel_optimize_test/net
Eric W. Biederman e9dc865340 [NET]: Make device event notification network namespace safe
Every user of the network device notifiers is either a protocol
stack or a pseudo device.  If a protocol stack that does not have
support for multiple network namespaces receives an event for a
device that is not in the initial network namespace it quite possibly
can get confused and do the wrong thing.

To avoid problems until all of the protocol stacks are converted
this patch modifies all netdev event handlers to ignore events on
devices that are not in the initial network namespace.

As the rest of the code is made network namespace aware these
checks can be removed.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-10-10 16:49:09 -07:00
..
9p
802 [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
8021q [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
appletalk [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
atm [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
ax25 [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
bluetooth [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
bridge [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
core [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
dccp [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
decnet [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
econet [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
ethernet [NET] ethernet: optimize memcpy and memset 2007-10-10 16:48:26 -07:00
ieee80211 [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
ipv4 [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
ipv6 [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
ipx [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
irda [NET]: Make packet reception network namespace safe 2007-10-10 16:49:08 -07:00
iucv [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
key [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
lapb
llc [NET]: Make packet reception network namespace safe 2007-10-10 16:49:08 -07:00
mac80211 [MAC80211]: make assoc_ap a flag 2007-10-10 16:48:58 -07:00
netfilter [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
netlabel
netlink [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
netrom [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
packet [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
rfkill
rose [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
rxrpc [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
sched [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
sctp [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
sunrpc [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
tipc [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
unix [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
wanrouter [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
wireless [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
x25 [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
xfrm [NET]: Make device event notification network namespace safe 2007-10-10 16:49:09 -07:00
compat.c
Kconfig
Makefile
nonet.c
socket.c [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
sysctl_net.c
TUNABLE