CAP_PERFMON = 38 (supported in upstream libcap-2.36)
CAP_BPF = 39 (supported in upstream libcap-2.37)
CAP_CHECKPOINT_RESTORE = 40 (supported in upstream libcap-2.43)
If your kernel supports the capability, but your build of libcap does not, you can work around this by specifying the numerical value of the capability instead. For example:
sudo setcap cap_perfmon+ep foo
can be worked around as:
sudo setcap 38=ep foo
At time of writing, upstream libcap is at version 2.66.
Modern kernels include:
CAP_PERFMON = 38 (supported in upstream libcap-2.36) _RESTORE = 40 (supported in upstream libcap-2.43)
CAP_BPF = 39 (supported in upstream libcap-2.37)
CAP_CHECKPOINT
If your kernel supports the capability, but your build of libcap does not, you can work around this by specifying the numerical value of the capability instead. For example:
sudo setcap cap_perfmon+ep foo
can be worked around as:
sudo setcap 38=ep foo
At time of writing, upstream libcap is at version 2.66.