]> err.no Git - linux-2.6/commit
[NET]: Make packet reception network namespace safe
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 17 Sep 2007 18:53:39 +0000 (11:53 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:49:08 +0000 (16:49 -0700)
commite730c15519d09ea528b4d2f1103681fa5937c0e6
treec117294523f4d004fb1d740610b6403e5744cdfc
parent6d34b1c27a72d5d1c73c567b2f6b1fde316e0eae
[NET]: Make packet reception network namespace safe

This patch modifies every packet receive function
registered with dev_add_pack() to drop packets if they
are not from the initial network namespace.

This should ensure that the various network stacks do
not receive packets in a anything but the initial network
namespace until the code has been converted and is ready
for them.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
26 files changed:
drivers/block/aoe/aoenet.c
drivers/net/bonding/bond_3ad.c
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c
drivers/net/hamradio/bpqether.c
drivers/net/pppoe.c
drivers/net/wan/hdlc.c
drivers/net/wan/lapbether.c
drivers/net/wan/syncppp.c
net/8021q/vlan_dev.c
net/appletalk/aarp.c
net/appletalk/ddp.c
net/ax25/ax25_in.c
net/bridge/br_stp_bpdu.c
net/decnet/dn_route.c
net/econet/af_econet.c
net/ipv4/arp.c
net/ipv4/ip_input.c
net/ipv4/ipconfig.c
net/ipv6/ip6_input.c
net/ipx/af_ipx.c
net/irda/irlap_frame.c
net/llc/llc_input.c
net/packet/af_packet.c
net/tipc/eth_media.c
net/x25/x25_dev.c