diff options
author | Alan Maguire <[email protected]> | 2022-05-19 15:25:34 +0100 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-05-20 19:54:34 -0700 |
commit | 90a039fd19fc35d03a74ce2973992c878546cb20 (patch) | |
tree | cede8e9b69fef859b496bd610e1836a688c41617 /net/lapb/lapb_timer.c | |
parent | c8644cd0efe719608ddcb341bcf087d4bc0bf6b8 (diff) |
selftests/bpf: add tests verifying unprivileged bpf behaviour
tests load/attach bpf prog with maps, perfbuf and ringbuf, pinning
them. Then effective caps are dropped and we verify we can
- pick up the pin
- create ringbuf/perfbuf
- get ringbuf/perfbuf events, carry out map update, lookup and delete
- create a link
Negative testing also ensures
- BPF prog load fails
- BPF map create fails
- get fd by id fails
- get next id fails
- query fails
- BTF load fails
Signed-off-by: Alan Maguire <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions