GROUPMEMBER(9)
okay so bestie, we're looking at GROUPMEMBER(9) from the Kernel Developer's Manual, and it's literally the vibe check for group membership. no cap. π«Ά
πΈ NAME πΈ
groupmember β checks if credentials mandate some group membership. that's the whole name, and yes she ate. π
β¨ SYNOPSIS β¨
#include <sys/param.h>
#include <sys/ucred.h>
bool
groupmember(gid_t gid, const struct ucred *cred);
bool
realgroupmember(gid_t gid, const struct ucred *cred);
π¦ DESCRIPTION π¦
The groupmember() function checks if credentials cred indicate that the associated subject or object is a member of the group designated by the group ID gid. think: do these creds say ur in the group? π
Considered groups in cred are the effective and supplementary groups. The real group is not taken into account. periodt. π«
Function realgroupmember() works the same except that it considers instead the real and supplementary groups, and not the effective one. so it's giving same energy, different group list. π
π RETURN VALUES π
The groupmember() and realgroupmember() functions return true if the given credentials indicate membership of the group gid, or false otherwise. no in-between, bestie β just yes or no. β
β
π₯ SEE ALSO π₯
π AUTHORS π
This manual page was initially written by Chad David <davidc@acns.ab.ca> and was revised by Olivier Certner <olce.freebsd@certner.fr>. iconic collab fr fr. π
mwah π this page is from Debian, dated October 31, 2024, and the manual is GROUPMEMBER(9) β slay and bye. π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved
- Copyright (C) 2023 Olivier Certner <olce.freebsd@certner.fr>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms