]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/sctp/protocol.c
[NETNS]: Disable inetaddr notifiers in namespaces other than initial.
[mirror_ubuntu-artful-kernel.git] / net / sctp / protocol.c
index 688546dccd828f0821736a301535049cc3d8ca04..8d9d929f6ceabdf25e6be2af3141cf7058bb348b 100644 (file)
@@ -629,6 +629,9 @@ static int sctp_inetaddr_event(struct notifier_block *this, unsigned long ev,
        struct sctp_sockaddr_entry *addr = NULL;
        struct sctp_sockaddr_entry *temp;
 
+       if (ifa->ifa_dev->dev->nd_net != &init_net)
+               return NOTIFY_DONE;
+
        switch (ev) {
        case NETDEV_UP:
                addr = kmalloc(sizeof(struct sctp_sockaddr_entry), GFP_ATOMIC);