commit | 43dd115b1fffdd8d2c4cc15659c00b2a1addbc43 | [log] [tgz] |
---|---|---|
author | Anton Protopopov <a.s.protopopov@gmail.com> | Wed May 27 18:57:00 2020 +0000 |
committer | Alexei Starovoitov <ast@kernel.org> | Mon Jun 01 14:38:22 2020 -0700 |
tree | c12bee6e69cccf7ebeb5b2c6b8228d0982660fe5 | |
parent | 1ea0f9120c8ce105ca181b070561df5cbd6bc049 [diff] |
selftests/bpf: Add tests for write-only stacks/queues For write-only stacks and queues bpf_map_update_elem should be allowed, but bpf_map_lookup_elem and bpf_map_lookup_and_delete_elem should fail with EPERM. 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-6-a.s.protopopov@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>