$RodHat_/search
capabilities reference

CAP_BPF

Use privileged BPF operations.

Bit number
39
Mask in /proc/PID/status
0000008000000000
Added in Linux
5.8
Group
Tracing, performance and checkpoint

Added in Linux 5.8 to split BPF out of CAP_SYS_ADMIN: creating all map types, using the more advanced verifier features and loading BTF. Tracing programs usually need CAP_PERFMON too. Check kernel.unprivileged_bpf_disabled before assuming an unprivileged process has any BPF access at all.

Narrower option: Replaces CAP_SYS_ADMIN for these operations since Linux 5.8.

Check a running process with grep Cap /proc/PID/status, or paste the hex into the mask decoder.

Sources

  1. capabilities(7), Linux man-pages
  2. user_namespaces(7), Linux man-pages

Bit numbers are from linux/capability.h. The list of syscall cards is matched by name from the card text on this site, not from the kernel source. Spot one that's wrong? Tell Rod.