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, CAPNG_SELECT_BOTH if printing
25       both  is desired, CAPNG_SELECT_AMBIENT if only printing the ambient ca‐
26       pabilities, or CAPNG_SELECT_ALL if printing all is desired.
27
28

RETURN VALUE

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

SEE ALSO

36       capng_print_caps_text(3),capabilities(7)
37
38

AUTHOR

40       Steve Grubb
41
42
43
44Red Hat                            Sept 2020       CAPNG_PRINT_CAPS_NUMERIC(3)
Impressum