capng_capability_to_name3
Convert capability integer to text
Usage
#include <cap-ng.h>
const char *capng_capability_to_name(unsigned int capability);
Overview
capng_capability_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/capability.h. The string that is output is the same as the define text from linux/capability.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.
Return value
This returns a NULL pointer on failure and the correct string otherwise.
Releases
9 releases since Debian 6.0 (Squeeze); the text changed 2 times.