logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

capng_capability_to_name - convert capability integer to text

Author

Steve Grubb Red Hat June 2009 CAPNG_CAPABILITY_TO_NAME(3)

Description

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.

Name

capng_capability_to_name - convert capability integer to text

Return Value

This returns a NULL pointer on failure and the correct string otherwise.

See Also

capng_name_to_capability(3), capabilities(7)

Synopsis

#include<cap-ng.h> const char *capng_capability_to_name(unsigned int capability);

See Also