Poster of Linux kernelThe best gift for a Linux geek
CAPNG_CAPABILITY_TO_NAME

CAPNG_CAPABILITY_TO_NAME

Section: Libcap-ng API (3) Updated: June 2009
Local index Up
 

NAME

capng_capability_to_name - convert capability integer to text  

SYNOPSIS

#include <cap-ng.h>

const char *capng_capability_to_name(unsigned int capability);

 

DESCRIPTION

capng_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.

 

RETURN VALUE

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

 

SEE ALSO

capng_name_to_capability(3), capabilities(7)

 

AUTHOR

Steve Grubb


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 21:43:05 GMT, April 16, 2011