]> git.baikalelectronics.ru Git - kernel.git/commit
net: make ipv6 bind honour freebind
authorMaciej Żenczykowski <maze@google.com>
Mon, 7 Nov 2011 14:57:21 +0000 (14:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Nov 2011 20:13:03 +0000 (15:13 -0500)
commit9d21074e36cbc4c80ce19a4d4ac7b104857fcc69
tree1fa2bbbcbc337f6d1db23b09acd2ee8b48e37389
parentf448968779b0e1343df3ac60045026e1609d2a8e
net: make ipv6 bind honour freebind

This makes native ipv6 bind follow the precedent set by:
  - native ipv4 bind behaviour
  - dual stack ipv4-mapped ipv6 bind behaviour.

This does allow an unpriviledged process to spoof its source IPv6
address, just like it currently can spoof its source IPv4 address
(for example when using UDP).

Signed-off-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/af_inet6.c