Skip to content
Commit 129a9989 authored by Piotr Sawicki's avatar Piotr Sawicki Committed by Casey Schaufler
Browse files

Smack: Fix handling of IPv4 traffic received by PF_INET6 sockets



A socket which has sk_family set to PF_INET6 is able to receive not
only IPv6 but also IPv4 traffic (IPv4-mapped IPv6 addresses).

Prior to this patch, the smk_skb_to_addr_ipv6() could have been
called for socket buffers containing IPv4 packets, in result such
traffic was allowed.

Signed-off-by: default avatarPiotr Sawicki <p.sawicki2@partner.samsung.com>
Signed-off-by: default avatarCasey Schaufler <casey@schaufler-ca.com>
parent 4f0496d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment