aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-02-28 23:46:17 -0500
committerDavid S. Miller <davem@davemloft.net>2008-02-28 23:46:17 -0500
commit6133fb1aa137b35a8fa91ec17977ebf6a41456ec (patch)
tree5bd2411fa97f9712f25ee95053a242db025b209c /net
parent6fc68624e524014fcd95faf726f855eb348f2e87 (diff)
[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 'net')
-rw-r--r--net/sctp/protocol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 688546dccd82..8d9d929f6cea 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -629,6 +629,9 @@ static int sctp_inetaddr_event(struct notifier_block *this, unsigned long ev,
629 struct sctp_sockaddr_entry *addr = NULL; 629 struct sctp_sockaddr_entry *addr = NULL;
630 struct sctp_sockaddr_entry *temp; 630 struct sctp_sockaddr_entry *temp;
631 631
632 if (ifa->ifa_dev->dev->nd_net != &init_net)
633 return NOTIFY_DONE;
634
632 switch (ev) { 635 switch (ev) {
633 case NETDEV_UP: 636 case NETDEV_UP:
634 addr = kmalloc(sizeof(struct sctp_sockaddr_entry), GFP_ATOMIC); 637 addr = kmalloc(sizeof(struct sctp_sockaddr_entry), GFP_ATOMIC);