Sample Header Ad - 728x90

How to get list of Linux capabilities

0 votes
2 answers
6210 views
I need to get a list of capabilities available to the version of linux on which the program is executed. Just in order to give user possibility to choose what capability to grant to the file. Is there any chance to do this using some standard libraries? The only way I managed to do this is to look at the bounding set of cash --print, but 1. Somewhy it displayes ...,cap_audit_read,38,39, while /usr/include/linux/capability.h says that CAP_LAST_CAP is CAP_AUDIT_READ(37) 2. I would really use some descriptions to capabilities, if it is possible
Asked by Ekaterina (57 rep)
Mar 28, 2022, 03:52 PM
Last activity: Mar 22, 2025, 11:51 AM