capable(8) | System Manager's Manual | capable(8) |
capable - Trace security capability checks (cap_capable()).
capable [-h] [-v] [-p PID] [-K] [-U] [-x] [--cgroupmap
MAPPATH]
[--mntnsmap MAPPATH] [--unique]
This traces security capability checks in the kernel, and prints details for each call. This can be useful for general debugging, and also security enforcement: determining a white list of capabilities an application needs.
Since this uses BPF, only the root user can use this tool.
CONFIG_BPF, bcc.
-h USAGE message.
This adds low-overhead instrumentation to capability checks, which are expected to be low frequency, however, that depends on the application. Test in a lab environment before use.
This is from bcc.
Also look in the bcc distribution for a companion _examples.txt file containing example usage, output, and commentary for this tool.
Linux
Unstable - in development.
Brendan Gregg
2020-03-08 | USER COMMANDS |