kuid_root_in_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ kuid_root_in_ns(9) β€” aka the "are you root in this namespace bestie" check

okay so real quick β€” this page lives in the Kernel API Manual, and it's a tiny lil function that's genuinely carrying the whole "am I the root of this universe or just a visitor" vibe check. yes it's short. no that doesn't make it boring. stay with me 🫢


✨ SYNOPSIS ✨

bool kuid_root_in_ns (kuid_t kuid , struct user_namespace *ns );

like, that's it. two args, one bool back. iconic minimalism honestly πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • kuid β€” the kuid we're testing, bestie. this is the little guy we're putting under the microscope πŸ”¬
  • ns β€” the user namespace we're testing against. like, the specific universe we're asking about 🌌

🌸 DESCRIPTION 🌸

Returns true if kuid represents the root user in ns, and false otherwise.

that's the whole thing. literally. it's giving "short but essential". no cap, this is the function you call when you need to know if a given kuid has main character root energy inside that particular namespace β€” not globally, not in some other ns, in that one. vibe check complete βœ…

no side effects mentioned, no caveats, no gotchas β€” the page says what it says and says nothing more. don't go inventing behaviour that isn't written down, bestie πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

the whole cap crew, plus friends, all hanging out in the kernel file ./security/commoncap.c:

go read them all, they're a whole squad fr fr 🫑


k bye ily, this page is brought to you by the ./security source, dated October 2026, in the Kernel API Manual βœ¨πŸ¦‹ don't forget to hydrate and don't forget your namespaces πŸ’–

πŸ“¦ where this page comes from