[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>
This commit is contained in:
committed by
David S. Miller
parent
6fc68624e5
commit
6133fb1aa1
@ -3464,6 +3464,9 @@ static int velocity_netdev_event(struct notifier_block *nb, unsigned long notifi
|
||||
struct velocity_info *vptr;
|
||||
unsigned long flags;
|
||||
|
||||
if (dev->nd_net != &init_net)
|
||||
return NOTIFY_DONE;
|
||||
|
||||
spin_lock_irqsave(&velocity_dev_list_lock, flags);
|
||||
list_for_each_entry(vptr, &velocity_dev_list, list) {
|
||||
if (vptr->dev == dev) {
|
||||
|
Reference in New Issue
Block a user