1CAPNG_CAPABILITY_TO_NAME(3) Libcap-ng API CAPNG_CAPABILITY_TO_NAME(3)
2
3
4
6 capng_capability_to_name - convert capability integer to text
7
9 #include <cap-ng.h>
10
11 const char *capng_capability_to_name(unsigned int capability);
12
13
15 capng_capability_to_name will take the integer being passed and look it
16 up to see what its text string representation would be. The integer
17 being input must be in the valid range defined in linux/capabiliy.h.
18 The string that is output is the same as the define text from
19 linux/capabiliy.h with the CAP_ prefix removed and lower case. This is
20 useful for taking integer representation and converting it to something
21 more user friendly for display.
22
23
25 This returns a NULL pointer on failure and the correct string other‐
26 wise.
27
28
30 capng_name_to_capability(3), capabilities(7)
31
32
34 Steve Grubb
35
36
37
38Red Hat June 2009 CAPNG_CAPABILITY_TO_NAME(3)