sys_capget(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sys_capget(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so picture this: you're deep in the kernel, the vibes are immaculate, and you need to know what a process is actually allowed to do. that's this function. it's sys_capget, and it's literally the "get the capabilities of a given process" girlie. no cap. πŸ‘‘


✨ SYNOPSIS ✨

long sys_capget (cap_user_header_t header , cap_user_data_t dataptr );

that's the whole signature, bestie β€” she's short and she knows it 🫢


🌸 ARGUMENTS 🌸

  • header β€” a pointer to a struct that holds the capability version and the target pid data. it's giving "who am I asking about and in what format" energy πŸ’…
  • dataptr β€” a pointer to a struct that contains the effective, permitted, and inheritable capabilities that are returned. this is where the tea gets spilled back to you πŸ“

πŸ’– DESCRIPTION πŸ’–

so basically: returns 0 on success and < 0 on error. that's it. that's the whole description. short, sweet, iconic. ⭐

like, if you get a 0 back you're slaying; if you get something < 0 you're in your flop era and need to check what went wrong 😭


πŸ”₯ SEE ALSO πŸ”₯

all of these are your mutuals β€” go say hi, they're all in their capability-checking bag and honestly? obsessed. 🌈


no warnings in the original, but like, always vibe-check your pointers before you pass them, iykyk πŸ™ˆ

okay that's the whole page, bestie!! courtesy of ./kernel, dated October 2026, filed under sys_capget(9) β€” mwah, go get those capabilities πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from