On Tue, May 17, 2022 at 5:00 AM Alan Maguire <alan.maguire@xxxxxxxxxx> wrote: > > 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@xxxxxxxxxx> It fails with clang build. See BPF CI. prog_tests/unpriv_bpf_disabled.c:207:36: error: implicit conversion from enumeration type 'enum bpf_prog_type' to different enumeration type 'enum bpf_attach_type' [-Werror,-Wenum-conversion] ASSERT_EQ(bpf_prog_query(prog_fd, BPF_PROG_TYPE_TRACING, 0, &attach_flags, prog_ids,