capable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… capable(9) β€” the Kernel API Manual, but make it bestie-core πŸ’…

okay so this is the capable function from the kernel, and it’s giving β€œpermission check, but make it boolean.” Her whole thing is checking whether the current task has a specific superior capability in effect. No cap, it’s just that. πŸ’–


✨ NAME ✨

capable β€” determine if the current task has a superior capability in effect.

🌸 SYNOPSIS 🌸

bool capable (int cap );

πŸŽ€ ARGUMENTS πŸŽ€

  • cap β€” the capability to be tested for. That’s it, that’s the argument, bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay, so return true if the current task has the given superior capability currently available for use, and false if it doesn’t. Literally a vibe check for capability availability, but, y’know, in kernel form. πŸ’…

Also: this sets PF_SUPERPRIV on the task if the capability is available, on the assumption that it’s about to be used. Like, it’s flagging the task because this capability is about to be the main character. πŸ”₯

🌈 SEE ALSO 🌈

The kernel file is literally ./kernel/capability.c, and then there’s this whole friend group of capability-related pages:

bye bestie β€” source/version: ./kernel; date: October 2026; this page: capable(9). Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from