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 πŸ’…βœ¨πŸŽ€