rootid_from_xattr(9)
π 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 ofivalue(yes, the page literally saysivalueand 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 whosestruct 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:
cap_capable_helper(9)cap_capable(9)cap_settime(9)cap_ptrace_access_check(9)cap_ptrace_traceme(9)cap_capget(9)cap_capset(9)cap_inode_need_killpriv(9)cap_inode_killpriv(9)kuid_root_in_ns(9)cap_convert_nscap(9)get_vfs_caps_from_disk(9)cap_bprm_creds_from_file(9)cap_inode_setxattr(9)cap_inode_removexattr(9)cap_task_fix_setuid(9)cap_task_setscheduler(9)cap_task_setioprio(9)cap_task_setnice(9)cap_task_prctl(9)cap_vm_enough_memory(9)cap_mmap_addr(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms