---
name: "capng_fill"
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_fill"
---

# capng\_fill(3)

fill chosen capabilities set

## NAME

capng\_fill - fill chosen capabilities set

## SYNOPSIS

**#include \<cap-ng.h\>**

void capng\_fill(capng\_select\_t set);

## DESCRIPTION

capng\_fill sets all bits to a 1 in the selected POSIX capabilities set. The options are CAPNG\_SELECT\_CAPS for the traditional capabilities, CAPNG\_SELECT\_BOUNDS for the bounding set, CAPNG\_SELECT\_BOTH if filling both is desired, CAPNG\_SELECT\_AMBIENT if only operating on the ambient capabilities, or CAPNG\_SELECT\_ALL if filling all is desired.

## RETURN VALUE

None.

## NOTES

During capng\_apply, bits in the bounding set can only be dropped. You cannot set them.

## SEE ALSO

[**capng\_apply**(3)](/capng_apply/3.md), [**capabilities**(7)](/capabilities/7.md)

## AUTHOR

Steve Grubb
