xref: /aosp_15_r20/external/libcap/doc/getcap.8 (revision 2810ac1b38eead2603277920c78344c84ddf3aff)
originally written by Andrew Main <[email protected]>
GETCAP 8 "2021-08-29"
NAME
getcap - examine file capabilities
SYNOPSIS
getcap [-v] [-n] [-r] [-h] filename [ ... ]
DESCRIPTION
getcap displays the name and capabilities of each specified file.
OPTIONS

4 -h prints quick usage.

4 -n prints any non-zero user namespace root user ID value found to be associated with a file's capabilities.

4 -r enables recursive search.

4 -v display all searched entries, even if the have no file-capabilities.

4 filename One file per line.

"REPORTING BUGS"
Please report bugs via:

https://bugzilla.kernel.org/buglist.cgi?component=libcap&list_id=1090757

"SEE ALSO"
capsh (1), cap_get_file (3), cap_to_text (3), capabilities (7), user_namespaces (7), captree (8), getpcaps (8) and setcap (8).