MAN page from Trustix libcap-devel-1.10-2tr.i586.rpm
CAPGET
Section: Linux Programmer's Manual (2)
Updated: 17th May 1998
Index NAME
capget, capset - set/get process capabilities
SYNOPSIS
#undef _POSIX_SOURCE#include <sys/capability.h>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);
DESCRIPTION
These two functions are the raw kernel interface for getting andsetting capabilities. The kernel API is likely to change and use ofthese functions (in particular the format of the
cap_user_*_ttypes) is subject to change with each kernel revision.
These system calls are specific to Linux.The portable interfaces arecap_set_proc(3)andcap_get_proc(3).
RETURN VALUE
On success, zero is returned. On error, -1 is returned, and
errnois set appropriately.
ERRORS
- EINVAL
- One of the arguments was invalid.
- EPERM
- An attempt was made to add a capability to the Permitted set, or to seta capability in the Effective or Inheritable sets that is not in thePermitted set.
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- RETURN VALUE
- ERRORS
This document was created byman2html,using the manual pages.