1CAPNG_UPDATE(3) Libcap-ng API CAPNG_UPDATE(3)
2
3
4
6 capng_update - update the stored capabilities settings
7
9 #include <cap-ng.h>
10
11 int capng_update(capng_act_t action, capng_type_t type,unsigned int
12 capability);
13
14
16 capng_update will update the internal posix capabilities settings based
17 on the options passed to it. The action should be eith CAPNG_DROP to
18 set the capability bit to 0, or CAPNG_ADD to set the capability bit to
19 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
27 This returns 0 on success and -1 on failure.
28
29
31 capng_updatev(3), capabilities(7)
32
33
35 Steve Grubb
36
37
38
39Red Hat June 2009 CAPNG_UPDATE(3)