CAPNG_UPDATEV(3)
π
CAPNG_UPDATEV β ok bestie, let's talk about capng_updatev(3)
So this is a libcap-ng API page, and it's literally the glow-up version of capng_update. Sit down, hydrate, and let's get into it π«Ά
β¨ NAME β¨
capng_updatev β update the stored capabilities settings π
πΈ SYNOPSIS πΈ
#include <cap-ng.h>
int capng_updatev(capng_act_t action, capng_type_t type, unsigned
int capability, ...);
Yes, she takes varargs. She's that girl. π
π¦ DESCRIPTION π¦
okay so capng_updatev updates the internal POSIX capabilities settings based on the options you hand it. Think of it like editing your vibe in the group chat, but the group chat is a capability set. π
The action should be either CAPNG_DROP β which sets the capability bit to 0 β or CAPNG_ADD, which sets that capability bit to 1. Choose your fighter. π
The operation lands on the capability set you specify in the type parameter. The values are:
CAPNG_EFFECTIVECAPNG_PERMITTEDCAPNG_INHERITABLECAPNG_BOUNDING_SETCAPNG_AMBIENT
and the tea is: you can or them together to do the same operation on multiple sets at once. Multi-tasking queen. β¨
The last parameter, capability, is the capability define as given in linux/capability.h. iykyk. π
Not me about to explain why she's different β because she IS. This function differs from capng_update in that you may pass a list of capabilities. And bestie, listen: this list must be terminated with a -1 value. No -1, no closure. It's giving "please know when to stop." π¨
π RETURN VALUE π
She returns 0 on success and -1 on failure. That's it, that's the whole personality. π
π SEE ALSO π
π AUTHOR π
Steve Grubb. Respect the icon, fr fr. π«‘
k bye bestie, go forth and update those capabilities responsibly π
this one came to you courtesy of Red Hat, and the page itself is dated June 2009 β vintage but still slaying. πβ¨
π¦ where this page comes from
- alpine 3.22: libcap-ng-doc 0.8.5-r0 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- alpine 3.23: libcap-ng-doc 0.8.5-r0 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- alpine 3.24: libcap-ng-doc 0.8.5-r2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- 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
- debian trixie: libcap-ng-dev 0.8.5-4+b1 Β· LGPL-2.1-or-later
- fedora 43: libcap-ng-devel 0.8.5-8.fc43 Β· LGPL-2.0-or-later
- fedora 43: libcap-ng-devel 0.8.5-8.fc43 Β· 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
- opensuse-leap 16.0: libcap-ng-devel 0.8.5-160000.3.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libcap-ng-devel 0.8.5-160000.3.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libcap-ng-devel 0.8.5-160000.3.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libcap-ng-devel 0.8.5-160000.3.2 Β· LGPL-2.1-or-later
- ubuntu noble: libcap-ng-dev 0.8.4-2build2 Β· LGPL-2.1-or-later
- ubuntu questing: libcap-ng-dev 0.8.5-4build2
- ubuntu resolute: libcap-ng-dev 0.8.5-4build5 Β· LGPL-2.1-or-later
- 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