vfsgid_in_group_p(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

Okay so this one's a little kernel helper, and yes the name is a whole mouthful β€” it's vfsgid_in_group_p, and the (9) just means it lives in that section of the manual, slay πŸŽ€


🌸 NAME 🌸

vfsgid_in_group_p β€” check whether a vfsuid matches the caller's groups πŸ’–

(Yes, the NAME literally says vfsuid even though the function is about gids. That's what the page says, bestie β€” I'm not out here editing the lore, iykyk πŸ™ˆ)


✨ SYNOPSIS ✨

int vfsgid_in_group_p (vfsgid_t vfsgid );

That's it. One argument, one int back. Clean. Minimalist. Main character energy πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • vfsgid β€” the mnt gid to match πŸ“ like, that's the thing you're handing over to get checked.

πŸ’œ DESCRIPTION πŸ’œ

So the way this works: this function can be used to determine whether vfsuid matches any of the caller's groups. That's the whole vibe check β€” you pass in your mnt gid, it goes and looks at the caller's groups, and tells you if there's a match πŸ’…

(And yeah, the description says vfsuid β€” same energy as the NAME. Keeping it exactly as the page wrote it, fr fr 🫢)


πŸ”₯ RETURN πŸ”₯

  • 1 β€” yay, vfsuid matches the caller's groups βœ…
  • 0 β€” nope, no match πŸ’€

Literally a yes-or-no, no in-between, periodt.


🌈 SEE ALSO 🌈

Kernel file ./fs/mnt_idmapping.c, plus the whole friend group:

Go read those too, they're all lowkey iconic πŸ‘‘


Heads up bestie: the original page mixes vfsuid and vfsgid in the NAME, DESCRIPTION, and RETURN sections. I kept every word of it the way it was written β€” no cap, no fixing πŸ’–

And that's the whole page! 🧚 Signing off from ./fs, dated October 2026, on the vfsgid_in_group_p(9) page itself β€” stay hydrated, read your kernel headers, and mwah πŸ’‹πŸ’œ

πŸ“¦ where this page comes from