aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorAlan Maguire <[email protected]>2022-05-19 14:25:34 +0000
committerAlexei Starovoitov <[email protected]>2022-05-21 02:54:34 +0000
commit90a039fd19fc35d03a74ce2973992c878546cb20 (patch)
treecede8e9b69fef859b496bd610e1836a688c41617 /net/unix/af_unix.c
parentbpf: refine kernel.unprivileged_bpf_disabled behaviour (diff)
downloadkernel-90a039fd19fc35d03a74ce2973992c878546cb20.tar.gz
kernel-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 <[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/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions