aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorAlan Maguire <alan.maguire@oracle.com>2022-05-19 15:25:34 +0100
committerAlexei Starovoitov <ast@kernel.org>2022-05-20 19:54:34 -0700
commit90a039fd19fc35d03a74ce2973992c878546cb20 (patch)
treecede8e9b69fef859b496bd610e1836a688c41617 /scripts/bpf_doc.py
parentc8644cd0efe719608ddcb341bcf087d4bc0bf6b8 (diff)
downloadlinux-90a039fd19fc35d03a74ce2973992c878546cb20.tar.gz
linux-90a039fd19fc35d03a74ce2973992c878546cb20.tar.bz2
linux-90a039fd19fc35d03a74ce2973992c878546cb20.zip
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 <alan.maguire@oracle.com> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/r/1652970334-30510-3-git-send-email-alan.maguire@oracle.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions