GROUPMEMBER(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

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