summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_main.c
diff options
context:
space:
mode:
authorDenis V. Lunev2008-02-29 05:46:17 +0100
committerDavid S. Miller2008-02-29 05:46:17 +0100
commit6133fb1aa137b35a8fa91ec17977ebf6a41456ec (patch)
tree5bd2411fa97f9712f25ee95053a242db025b209c /drivers/net/bonding/bond_main.c
parent[NETFILTER]: Consolidate masq_inet_event and masq_device_event. (diff)
downloadkernel-qcow2-linux-6133fb1aa137b35a8fa91ec17977ebf6a41456ec.tar.gz
kernel-qcow2-linux-6133fb1aa137b35a8fa91ec17977ebf6a41456ec.tar.xz
kernel-qcow2-linux-6133fb1aa137b35a8fa91ec17977ebf6a41456ec.zip
[NETNS]: Disable inetaddr notifiers in namespaces other than initial.
ip_fib_init is kept enabled. It is already namespace-aware. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r--drivers/net/bonding/bond_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 0942d82f7cbf..966643473da7 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -3511,6 +3511,9 @@ static int bond_inetaddr_event(struct notifier_block *this, unsigned long event,
struct bonding *bond, *bond_next;
struct vlan_entry *vlan, *vlan_next;
+ if (ifa->ifa_dev->dev->nd_net != &init_net)
+ return NOTIFY_DONE;
+
list_for_each_entry_safe(bond, bond_next, &bond_dev_list, bond_list) {
if (bond->dev == event_dev) {
switch (event) {