CR_SEEOTHERGIDS(9)
β¨ CR_SEEOTHERGIDS β¨
okay bestie, so this is a page from the Kernel Developer's Manual (section 9, we're in the big leagues now π
) β and it's all about cr_seeothergids, aka "can this thing see that other thing based on their group memberships?" π«Ά
πΈ NAME πΈ
cr_seeothergids β figure out the visibility of objects based on their group memberships π
π SYNOPSIS π
int
cr_seeothergids(struct ucred *u1, struct ucred *u2);
π¦ DESCRIPTION π¦
So the way this works is: this function determines the visibility of objects in the kernel, and it does that based on the group IDs inside the credentials u1 and u2 that are associated with those objects. periodt β¨
And here's the tea β β that visibility is influenced by the sysctl(8) variable security.bsd.see_other_gids:
- if that variable is non-zero, then literally all objects in the kernel are visible to each other, no matter what their group membership is β everyone's in the group chat, no cap π
- if that variable is zero, then the object with credentials
u2is visible to the object with credentialsu1if eitheru1is the super-user credential, or at least one ofu1's group IDs is present inu2's group set π«Ά
π SYSCTL VARIABLES π
security.bsd.see_other_gidsβ must be non-zero if objects with unprivileged credentials are gonna be able to see each other π
π RETURN VALUES π
This function returns zero if the object with credential u1 can "see" the object with credential u2, or ESRCH otherwise π
β SEE ALSO β
and that's the whole page bestie, you ate that π stay iconic, go read your kernel source, mwah π
this one came from the Debian folks, dated November 11, 2003 β vintage but still slaying π
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2003 Joseph Koshy <jkoshy@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms