commands

capsh — Decode a capability mask

Decode a hexadecimal capability mask without granting privileges. Names depend on libcap version. Use a fresh private workspace; do not apply to a real system.

Formal Syntax & Structure

linux syntaxlinux
capsh --decode=HEX

Parameters & Attributes

NameTypeDescription
--decodeoptionHexadecimal capability mask

Return Value

exit status and output

The decode option prints the capability names represented by the supplied mask. This is a conversion of input data, not a grant of capabilities or an inspection of the current process's effective set.

Working Example

Example Snippetlinux
capsh --decode=0000000000000400
Linux Reference