capget, capset - set/get process capabilities
int capget(cap_user_header_t header, cap_user_data_t data);
int capset(cap_user_header_t header, const cap_user_data_t data);
These 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
types) is subject to change with each kernel revision.
These system calls are specific to Linux.
The portable interfaces are
On success, zero is returned. On error, -1 is returned, and
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
- RETURN VALUE