]> err.no Git - linux-2.6/commit
[NET]: Make device event notification network namespace safe
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 12 Sep 2007 11:02:17 +0000 (13:02 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:49:09 +0000 (16:49 -0700)
commite9dc86534051b78e41e5b746cccc291b57a3a311
tree1cd4a1dde4c51b6311749428a22cc8a8f5436825
parente730c15519d09ea528b4d2f1103681fa5937c0e6
[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>
38 files changed:
arch/ia64/hp/sim/simeth.c
drivers/net/bonding/bond_main.c
drivers/net/hamradio/bpqether.c
drivers/net/pppoe.c
drivers/net/wan/dlci.c
drivers/net/wan/hdlc.c
drivers/net/wan/lapbether.c
net/8021q/vlan.c
net/appletalk/aarp.c
net/appletalk/ddp.c
net/atm/clip.c
net/atm/mpc.c
net/ax25/af_ax25.c
net/bridge/br_notify.c
net/core/dst.c
net/core/fib_rules.c
net/core/pktgen.c
net/core/rtnetlink.c
net/decnet/af_decnet.c
net/econet/af_econet.c
net/ipv4/arp.c
net/ipv4/devinet.c
net/ipv4/fib_frontend.c
net/ipv4/ipmr.c
net/ipv4/netfilter/ip_queue.c
net/ipv4/netfilter/ipt_MASQUERADE.c
net/ipv6/addrconf.c
net/ipv6/ndisc.c
net/ipv6/netfilter/ip6_queue.c
net/ipx/af_ipx.c
net/netfilter/nfnetlink_queue.c
net/netrom/af_netrom.c
net/packet/af_packet.c
net/rose/af_rose.c
net/tipc/eth_media.c
net/x25/af_x25.c
net/xfrm/xfrm_policy.c
security/selinux/netif.c