On Mon, 2024-02-12 at 12:14 -0800, Alexei Starovoitov wrote: [...] > It doesn't and doesn't work for ringbuf either. > I guess we can add a filter by map type, but I'm not sure > how big this can of worms (extra checks) will be. > There are probably many libbpf apis that can be misused. > Like bpf_map__set_type() Right, probably such extra checks should be a subject of a different patch-set (if any).