Re: [PATCH bpf-next v2] tools: bpftool: make capability check account for new BPF caps

2020-05-25 Thread Daniel Borkmann
On 5/23/20 3:02 AM, Quentin Monnet wrote: Following the introduction of CAP_BPF, and the switch from CAP_SYS_ADMIN to other capabilities for various BPF features, update the capability checks (and potentially, drops) in bpftool for feature probes. Because bpftool and/or the system might not know

[PATCH bpf-next v2] tools: bpftool: make capability check account for new BPF caps

2020-05-22 Thread Quentin Monnet
Following the introduction of CAP_BPF, and the switch from CAP_SYS_ADMIN to other capabilities for various BPF features, update the capability checks (and potentially, drops) in bpftool for feature probes. Because bpftool and/or the system might not know of CAP_BPF yet, some caution is necessary: