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

NAME

6       capng_print_caps_numeric - print numeric values for capabilities set
7

SYNOPSIS

9       #include <cap-ng.h>
10
11       char   *capng_print_caps_numeric(capng_print_t   where,  capng_select_t
12       set);
13
14

DESCRIPTION

16       capng_print_caps_numeric will create a numeric  representation  of  the
17       internal  capabilities. The representation can be sent to either stdout
18       or a buffer by passing CAPNG_PRINT_STDOUT or CAPNG_PRINT_BUFFER respecā€
19       tively  for  the  where parameter. If the option was for a buffer, this
20       function will malloc a buffer that the caller must free.
21
22       The set parameter controls what is included in the representation.  The
23       legal  options  are CAPNG_SELECT_CAPS for the traditional capabilities,
24       CAPNG_SELECT_BOUNDS for  the  bounding  set,  or  CAPNG_SELECT_BOTH  if
25       clearing both is desired.
26
27

RETURN VALUE

29       If  CAPNG_PRINT_BUFFER  was  selected  for where, this will be the text
30       buffer and NULL on failure. If  CAPNG_PRINT_STDOUT  was  selected  then
31       this value will be NULL no matter what.
32
33

SEE ALSO

35       capabilities(7)
36
37

AUTHOR

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