CAPNG_CLEAR(3)

πŸ“¦
version 0.9.6 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

capng_clear β€” bestie, this one clears your chosen capabilities set. like, zeroes it tf out. bye bits ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <cap-ng.h>

void capng_clear(capng_select_t set);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea πŸ“ β€” capng_clear sets all the bits in the POSIX capabilities set you picked to 0. that's it. that's the whole job. she's a one-trick pony and she ate.

and the set you pick is one of these iconic little options, passed as set:

  • CAPNG_SELECT_CAPS β€” for the traditional capabilities, the OGs πŸ’…
  • CAPNG_SELECT_BOUNDS β€” for the bounding set, the vibes-limiter ✨
  • CAPNG_SELECT_BOTH β€” when clearing both is what you desire, because why choose 🫢
  • CAPNG_SELECT_AMBIENT β€” if you're only operating on the ambient capabilities, very niche, very demure 🌸
  • CAPNG_SELECT_ALL β€” if clearing literally all of it is the goal. main character energy, no survivors πŸ’€

🌈 RETURN VALUE 🌈

None. literally nothing comes back. no exit code, no little treat, no note. it's giving silent and mysterious 😌


⭐ SEE ALSO ⭐


πŸ‘‘ AUTHOR πŸ‘‘

Steve Grubb β€” thank you king, we love a legend 🫢


and that's the whole page bestie!! this came from the Libcap-ng API, brought to you by Red Hat, dated Sept 2020 πŸŽ€πŸ’–βœ¨ slay, stay cleared, iykyk πŸ¦‹

πŸ“¦ where this page comes from