CAPNG_FILL(3)
π CAPNG_FILL(3) β the capng_fill glow-up π
okay bestie, welcome to the Libcap-ng API, section 3, and today's main character is capng_fill. sit down, hydrate, and let's get you fluent π
β¨ NAME β¨
capng_fill β fill chosen capabilities set π«Ά
πΈ SYNOPSIS πΈ
#include <cap-ng.h>
void capng_fill(capng_select_t set);
π¦ DESCRIPTION π¦
so here's the vibe: capng_fill sets all the bits to a 1 in whichever POSIX capabilities set you point it at. every single bit. fully filled. no crumbs left. π₯
and you get to choose which set, because we're not doing guesswork here. the options for that set argument are:
CAPNG_SELECT_CAPSβ the traditional capabilities. the OG. the classics. πCAPNG_SELECT_BOUNDSβ the bounding set. we love a boundary. πCAPNG_SELECT_BOTHβ when you want both filled, because why choose πCAPNG_SELECT_AMBIENTβ if you're only operating on the ambient capabilities, this is your girl β¨CAPNG_SELECT_ALLβ if filling all of them is the desired outcome, say less, it's handled π
π RETURN VALUE π
None. literally nothing. it's a void function, bestie β she does the thing and leaves, no receipts π«₯
π§ NOTES π§
okay important, listen up, because this one's a technical caveat and I need you to hear me:
during capng_apply, bits in the bounding set can only be dropped. you cannot set them. π«
so like... fill away, but the bounding set said "we're only going down, not up." periodt. π
β SEE ALSO β
π AUTHOR π
Steve Grubb π
and that's a wrap, my love β this page came to you from Red Hat, dated March 2026, living in the Libcap-ng API man page family. go forth and fill those sets responsibly. slay π β¨π
π¦ where this page comes from
- arch rolling: libcap-ng 0.9.6-1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- centos-stream 10: libcap-ng-devel 0.9.3-2.el10 Β· LGPL-2.0-or-later
- fedora 43: libcap-ng-devel 0.9.6-1.fc43 Β· LGPL-2.0-or-later
- fedora 43: libcap-ng-devel 0.9.6-1.fc43 Β· LGPL-2.0-or-later
- fedora 44: libcap-ng-devel 0.9.2-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: libcap-ng-devel 0.9.2-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: libcap-ng-devel 0.9.6-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: libcap-ng-devel 0.9.6-1.fc44 Β· LGPL-2.0-or-later
- nixos 26.05: libcap-ng 0.9.3
- nixpkgs unstable: libcap-ng 0.9.6
- ubuntu stonking: libcap-ng-dev 0.9.6-1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms