---
name: "capng_capability_to_name"
section: "3"
platform: "linux"
package: "libcap-ng"
version: "0.9.6-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/capng_capability_to_name"
---

# capng\_capability\_to\_name(3)

convert capability integer to text

## 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\_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.

## SEE ALSO

[**capng\_name\_to\_capability**(3)](/capng_name_to_capability/3.md), [**capabilities**(7)](/capabilities/7.md)

## AUTHOR

Steve Grubb
