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 either 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, or CAPNG_AMBIENT. The values may
22 be or'ed together to perform the same operation on multiple sets. The
23 last paramter, capability, is the capability define as given in
24 linux/capability.h.
25
26
28 This returns 0 on success and -1 on failure.
29
30
32 capng_updatev(3), capabilities(7)
33
34
36 Steve Grubb
37
38
39
40Red Hat June 2009 CAPNG_UPDATE(3)