1CAPNG_APPLY(3) Libcap-ng API CAPNG_APPLY(3)
2
3
4
6 capng_apply - apply the stored capabilities settings
7
9 #include <cap-ng.h>
10
11 int capng_apply(capng_select_t set);
12
13
15 capng_apply will transfer the specified internal posix capabilities
16 settings to the kernel. The options are CAPNG_SELECT_CAPS for the tra‐
17 ditional capabilities, CAPNG_SELECT_BOUNDS for the bounding set, or
18 CAPNG_SELECT_BOTH if transferring both is desired.
19
20
22 This returns 0 on success and -1 on failure.
23
24
26 If you are doing multi-threaded programming, calling this function will
27 only set capabilities on the calling thread. All other threads are
28 unaffected. If you want to set overall capabilities for a multi-
29 threaded process, you will need to do that before creating any threads.
30 See the capset syscall for more information on this topic.
31
32
34 capset(2), capng_update(3), capabilities(7)
35
36
38 Steve Grubb
39
40
41
42Red Hat June 2009 CAPNG_APPLY(3)