CAPNG\_FILL(3) Libcap-ng API CAPNG\_FILL(3)

# [NAME](#NAME)

capng\_fill - fill chosen capabilities set

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;cap-ng.h&gt;**

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

# [DESCRIPTION](#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](#RETURN_VALUE)

None.

# [NOTES](#NOTES)

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

# [SEE ALSO](#SEE_ALSO)

[**capng\_apply**(3)](/man/os/libcap-ng/capng_apply.3), [**capabilities**(7)](/man/os/libcap-ng/capabilities.7)

# [AUTHOR](#AUTHOR)

Steve Grubb

March 2026 Red Hat

---

Document: capng_fill(3) from libcap-ng 0.9.6-r0 (Chainguard OS)
Source: https://github.com/stevegrubb/libcap-ng.git
