blob: 87175ae3e2f21639d29c9a73c48677af7e68f3a2 [file] [log] [blame]
Nick Kralevich1d1011a2012-09-06 10:14:03 -07001.TH "CAPNG_GET_CAPS_PROCESS" "3" "June 2009" "Red Hat" "Libcap-ng API"
2.SH NAME
3capng_get_caps_process \- get the capabilities from a process
4.SH "SYNOPSIS"
5.B #include <cap-ng.h>
6.sp
7int capng_get_caps_process(void);
8
9.SH "DESCRIPTION"
10
11capng_get_caps_process will get the capabilities and bounding set of the pid stored inside libcap-ng's state table. The default is the pid of the running process. This can be changed by using the capng_setpid function.
12
13.SH "RETURN VALUE"
14
15This returns 0 on success and -1 on failure.
16
17.SH NOTES
18
19If you are doing multi-threaded programming, calling this function will only get capabilities on the calling thread. If you want to get overall capabilities for a multi-threaded process, you can only do that before creating any threads. Afterwards, threads may be able to independantly set capabilities.
20
21.SH "SEE ALSO"
22
23.BR capng_setpid (3),
24.BR capabilities (7)
25
26.SH AUTHOR
27Steve Grubb