]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: allow any source address for sendmsg pktinfo with ip_nonlocal_bind
authorVincent Bernat <vincent@bernat.im>
Wed, 25 Jul 2018 11:19:13 +0000 (13:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Jul 2018 19:27:13 +0000 (12:27 -0700)
commit33af48563ca41fb4b139d401718f9ca67d0e2a40
tree60071af28fb43fb8f9e8d6d802f6a6165a246d33
parente54a639b5e4c51033849b4291dd4c462590c7a33
net/ipv6: allow any source address for sendmsg pktinfo with ip_nonlocal_bind

When freebind feature is set of an IPv6 socket, any source address can
be used when sending UDP datagrams using IPv6 PKTINFO ancillary
message. Global non-local bind feature was added in commit
dae9731eb9f4 ("ipv6: Nonlocal bind") for IPv6. This commit also allows
IPv6 source address spoofing when non-local bind feature is enabled.

Signed-off-by: Vincent Bernat <vincent@bernat.im>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/datagram.c