privileged_wrt_inode_uidgid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… privileged_wrt_inode_uidgid(9) πŸ’…

okay bestie, welcome to the Kernel API Manual, section 9 β€” yes we're in the kernel docs, no I'm not scared, and yes you're gonna get this. this one's a tiny little helper function that answers one very specific question for you, and honestly? it's giving "short king but emotionally available." let's go 🫢


✨ NAME ✨

privileged_wrt_inode_uidgid β€” the "wait, do capabilities in this namespace actually count for this inode?" check πŸ”

like, the whole vibe of this function is: is this thing privileged with respect to this inode's uid and gid. periodt.


🌸 SYNOPSIS 🌸

bool privileged_wrt_inode_uidgid (struct user_namespace *ns , struct mnt_idmap *idmap , const struct inode *inode );

it returns a bool, so you already know it's a yes/no girlie. no ambiguity, no "it depends," just true or false πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • ns β€” the user namespace in question. like, which namespace are we judging everything from. main character of the story fr.
  • idmap β€” the idmap of the mount the inode was found from. yes bestie, the inode knows where it came from, and this is the receipt 🧾
  • inode β€” the inode in question. the actual file-ish thing we're doing a vibe check on πŸ¦‹

πŸ’« DESCRIPTION πŸ’«

so here's literally the whole plot: return true if the inode uid and gid are within the namespace. that's it. that's the function. it's a one-liner and it's iconic for it πŸ‘‘

no cap, that's the entire description in the original, and I'm not about to invent extra lore for you β€” the manpage said what it said. the uid and gid of the inode are within the namespace β†’ true. everything else β†’ not that. slay 🌈


πŸ”₯ SEE ALSO πŸ”₯

the whole capability friend group showed up, and honestly they all ate πŸ’…βœ¨


ok real talk for a sec: the original page documents no options, no environment variables, no exit statuses and no error returns here β€” just the one boolean result described above. so if anyone tells you there's more, they're making stuff up πŸ™ˆ

and that's the page bestie!! sourced straight from ./kernel, dated October 2026, and honestly? future-proof AND cute. mwah πŸ’‹πŸ¦‹πŸ’–

πŸ“¦ where this page comes from