1CAPNG_UPDATEV(3) Libcap-ng API CAPNG_UPDATEV(3)
2
3
4
6 capng_updatev - update the stored capabilities settings
7
9 #include <cap-ng.h>
10
11 int capng_updatev(capng_act_t action, capng_type_t type, unsigned
12 int capability, ...);
13
14
16 capng_updatev will update the internal posix capabilities settings
17 based on the options passed to it. The action should be eith CAPNG_DROP
18 to set the capability bit to 0, or CAPNG_ADD to set the capability bit
19 to 1. The operation is performed on the capability set specified in the
20 type parameter. The values are: CAPNG_EFFECTIVE, CAPNG_PERMITTED,
21 CAPNG_INHERITABLE, CAPNG_BOUNDING_SET. The values may be or'ed together
22 to perform the same operation on multiple sets. The last paramter,
23 capability, is the capability define as given in linux/capability.h.
24
25 This function differs from capng_update in that you may pass a list of
26 capabilities. This list must be terminated with a -1 value.
27
28
30 This returns 0 on success and -1 on failure.
31
32
34 capng_update(3), capabilities(7)
35
36
38 Steve Grubb
39
40
41
42Red Hat June 2009 CAPNG_UPDATEV(3)