capsh

A Linux tool that shows and changes process capabilities, including decoding the hexadecimal masks in /proc status.

In more detail

capsh --decode turns a CapEff value such as 00000000a80425fb into capability names. It can also start a shell with a reduced capability set for testing.

Example

The same bitmask can be decoded in a few lines of Python by testing each bit

Related terms

Taught in

References