aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/bpf
diff options
context:
space:
mode:
authorAnton Protopopov <a.s.protopopov@gmail.com>2020-05-27 18:56:59 +0000
committerAlexei Starovoitov <ast@kernel.org>2020-06-01 14:38:21 -0700
commit1ea0f9120c8ce105ca181b070561df5cbd6bc049 (patch)
tree7e4c0c652d27f92872fc680e3dd06fb67548ec75 /tools/testing/selftests/bpf
parentselftests/bpf: Cleanup comments in test_maps (diff)
downloadwireguard-linux-1ea0f9120c8ce105ca181b070561df5cbd6bc049.tar.xz
wireguard-linux-1ea0f9120c8ce105ca181b070561df5cbd6bc049.zip
bpf: Fix map permissions check
The map_lookup_and_delete_elem() function should check for both FMODE_CAN_WRITE and FMODE_CAN_READ permissions because it returns a map element to user space. Fixes: bd513cd08f10 ("bpf: add MAP_LOOKUP_AND_DELETE_ELEM syscall") Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20200527185700.14658-5-a.s.protopopov@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf')
0 files changed, 0 insertions, 0 deletions