commit | 81374aaa2693f8d3cd6cf3656a02ac8cf5c7ebea | [log] [tgz] |
---|---|---|
author | John Fastabend <john.fastabend@gmail.com> | Mon Aug 28 07:11:43 2017 -0700 |
committer | David S. Miller <davem@davemloft.net> | Mon Aug 28 11:13:22 2017 -0700 |
tree | 24e0a68c98a92ade186346a193fa6900f8ddd562 | |
parent | ed85054d34e2dfb5e9fac95980cf038ecf19225c [diff] |
bpf: harden sockmap program attach to ensure correct map type When attaching a program to sockmap we need to check map type is correct. Fixes: 174a79ff9515 ("bpf: sockmap with sk redirect support") Signed-off-by: John Fastabend <john.fastabend@gmail.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>