1CAPNG_PRINT_CAPS_NUMERIC(3) Libcap-ng API CAPNG_PRINT_CAPS_NUMERIC(3)
2
3
4
6 capng_print_caps_text - print names of values for capabilities set
7
9 #include <cap-ng.h>
10
11 char *capng_print_caps_text(capng_print_t where, capng_type_t which);
12
13
15 capng_print_caps_text will create a text string representation of the
16 internal capability set specified. The representation can be sent to
17 either stdout or a buffer by passing CAPNG_PRINT_STDOUT or
18 CAPNG_PRINT_BUFFER respectively for the where parameter. If the option
19 was for a buffer, this function will malloc a buffer that the caller
20 must free.
21
22 The legal values for the which paramemeter is CAPNG_EFFECTIVE,
23 CAPNG_PERMITTED, CAPNG_INHERITABLE, CAPNG_BOUNDING_SET, or CAPNG_AMBI‐
24 ENT.
25
26
28 If CAPNG_PRINT_BUFFER was selected for where, this will be the text
29 buffer and NULL on failure. If CAPNG_PRINT_STDOUT was selected then
30 this value will be NULL no matter what.
31
32
34 capng_print_caps_numeric(3),capabilities[1m(7)
35
36
38 Steve Grubb
39
40
41
42Red Hat June 2009 CAPNG_PRINT_CAPS_NUMERIC(3)