From: Hannes Frederic Sowa Date: Mon, 20 Jan 2014 04:16:39 +0000 (+0100) Subject: ipv6: protect protocols not handling ipv4 from v4 connection/bind attempts X-Git-Tag: v3.14-rc1~94^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82b276cd2b0bacd58e7c307bf8856925a68c4d14;p=pandora-kernel.git ipv6: protect protocols not handling ipv4 from v4 connection/bind attempts Some ipv6 protocols cannot handle ipv4 addresses, so we must not allow connecting and binding to them. sendmsg logic does already check msg->name for this but must trust already connected sockets which could be set up for connection to ipv4 address family. Per-socket flag ipv6only is of no use here, as it is under users control by setsockopt. Signed-off-by: Hannes Frederic Sowa Signed-off-by: David S. Miller --- Reading git-diff-tree failed