1CAPNG_UPDATEV(3)                 Libcap-ng API                CAPNG_UPDATEV(3)
2
3
4

NAME

6       capng_updatev - update the stored capabilities settings
7

SYNOPSIS

9       #include <cap-ng.h>
10
11       int  capng_updatev(capng_act_t action, capng_type_t type,      unsigned
12       int capability, ...);
13
14

DESCRIPTION

16       capng_updatev will update  the  internal  posix  capabilities  settings
17       based  on  the  options  passed  to  it.  The  action  should be either
18       CAPNG_DROP to set the capability bit to 0,  or  CAPNG_ADD  to  set  the
19       capability  bit  to 1. The operation is performed on the capability set
20       specified in the  type  parameter.  The  values  are:  CAPNG_EFFECTIVE,
21       CAPNG_PERMITTED,  CAPNG_INHERITABLE, CAPNG_BOUNDING_SET, or CAPNG_AMBI‐
22       ENT. The values may be or'ed together to perform the same operation  on
23       multiple  sets. The last paramter, capability, is the capability define
24       as given in linux/capability.h.
25
26       This function differs from capng_update in that you may pass a list  of
27       capabilities. This list must be terminated with a -1 value.
28
29

RETURN VALUE

31       This returns 0 on success and -1 on failure.
32
33

SEE ALSO

35       capng_update(3), capabilities(7)
36
37

AUTHOR

39       Steve Grubb
40
41
42
43Red Hat                            June 2009                  CAPNG_UPDATEV(3)
Impressum