blob: 30aea0ca32d70538de3a2b5318acf1ac00a081ef [file] [log] [blame]
Nick Kralevich1d1011a2012-09-06 10:14:03 -07001.TH "CAPNG_CAPABILITY_TO_NAME" "3" "June 2009" "Red Hat" "Libcap-ng API"
2.SH NAME
3capng_capability_to_name \- convert capability integer to text
4.SH "SYNOPSIS"
5.B #include <cap-ng.h>
6.sp
7const char *capng_capability_to_name(unsigned int capability);
8
9.SH "DESCRIPTION"
10
11capng_capabilityi_to_name will take the integer being passed and look it up to see what its text string representation would be. The integer being input must be in the valid range defined in linux/capabiliy.h. The string that is output is the same as the define text from linux/capabiliy.h with the CAP_ prefix removed and lower case. This is useful for taking integer representation and converting it to something more user friendly for display.
12
13.SH "RETURN VALUE"
14
15This returns a NULL pointer on failure and the correct string otherwise.
16
17.SH "SEE ALSO"
18
19.BR capng_name_to_capability (3),
20.BR capabilities (7)
21
22.SH AUTHOR
23Steve Grubb