bpf: require CAP_NET_ADMIN when using devmap
authorJohn Fastabend <john.fastabend@gmail.com>
Wed, 18 Oct 2017 14:11:44 +0000 (07:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2017 12:01:29 +0000 (13:01 +0100)
commit9ef2a8cd5c0dcb8e1f1534615c56eb13b630c363
tree52d1bcf9c1257a973d3a78cdf54d0d6f005df705
parentfb50df8d32283cd95932a182a46a10070c4a8832
bpf: require CAP_NET_ADMIN when using devmap

Devmap is used with XDP which requires CAP_NET_ADMIN so lets also
make CAP_NET_ADMIN required to use the map.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/devmap.c