rootid_from_xattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rootid_from_xattr(9) β€” the kernel API manual, but make it make sense πŸŽ€

okay bestie, so this page is called rootid_from_xattr(9) and it lives in the Kernel API Manual section of the kernel docs. We're translating the root uid of vfs caps. That's the whole vibe. Let's get into it ✨


🌸 SYNOPSIS 🌸

vfsuid_t rootid_from_xattr (const void *value , size_t size , struct
       user_namespace *task_ns );

Like, that's the whole signature. Three args, one return type (vfsuid_t), no notes. She's giving "small but mighty" πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

  • value β€” the vfs caps value, bestie πŸ’– and heads up: this one may be modified by this function β€” yes, fr fr, she might touch your data, so don't come crying if it comes back different 😭
  • size β€” the size of ivalue (yes, the page literally says ivalue and I'm not gonna pretend otherwise, we keep the text exactly as it is, no cap πŸ™ˆ)
  • task_ns β€” the user namespace of the caller, aka whose struct user_namespace * we're working with πŸ‘‘

πŸ”₯ SEE ALSO πŸ”₯

Big list incoming, and honestly? It's giving family reunion πŸ’€ Here's everyone in the Kernel file ./security/commoncap.c crew:

that's twenty-two (22) references, i counted, and every single one of them is on this page for a reason 🫢 go read them, iykyk πŸ’œ

ngl the whole capability subsystem is literally main character energy β€” this page is just one little xattr girlie in a massive cast 🌈

⭐ the cute little sign-off ⭐

this absolute icon of a page lives under ./security in the kernel tree, and the version we're reading is dated October 2026 πŸ—“οΈβœ¨ that's the whole footer, bestie β€” rootid_from_xattr(9) from the ./security corner of things, October 2026, slay πŸ’…πŸŽ€

πŸ“¦ where this page comes from