capset(2) -- Linux man page
NAMEcapget, capset - set/get process capabilities
int capget(cap_user_header_t header, cap_user_data_t data);
DESCRIPTIONThese two functions are the raw kernel interface for getting and setting capabilities. The kernel API is likely to change and use of these functions (in particular the format of the cap_user_*_t types) is subject to change with each kernel revision.
RETURN VALUEOn success, zero is returned. On error, -1 is returned, and errno is set appropriately.
- One of the arguments was invalid.
An attempt was made to add a capability to the Permitted set, or to set
a capability in the Effective or Inheritable sets that is not in the