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

# [NAME](#NAME)

capng\_clear - clear chosen capabilities set

# [SYNOPSIS](#SYNOPSIS)

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

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

# [DESCRIPTION](#DESCRIPTION)

capng\_clear sets to 0 all bits 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 clearing both is desired, CAPNG\_SELECT\_AMBIENT if only operating on the ambient capabilities, or CAPNG\_SELECT\_ALL if clearing all is desired.

# [RETURN VALUE](#RETURN_VALUE)

None.

# [SEE ALSO](#SEE_ALSO)

[**capabilities**(7)](/man/os/libcap-ng/capabilities.7)

# [AUTHOR](#AUTHOR)

Steve Grubb

Sept 2020 Red Hat

---

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