diff options
author | Denis V. Lunev <den@openvz.org> | 2008-02-28 20:46:17 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-28 20:46:17 -0800 |
commit | 6133fb1aa137b35a8fa91ec17977ebf6a41456ec (patch) | |
tree | 5bd2411fa97f9712f25ee95053a242db025b209c /drivers/net/bonding | |
parent | 6fc68624e524014fcd95faf726f855eb348f2e87 (diff) | |
download | op-kernel-dev-6133fb1aa137b35a8fa91ec17977ebf6a41456ec.zip op-kernel-dev-6133fb1aa137b35a8fa91ec17977ebf6a41456ec.tar.gz |
[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')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 0942d82..9666434 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) { |