groupmember(9), realgroupmember(9): Impact of signature change

Reviewed by:            mhorne
MFC after:              2 weeks
MFC to:                 stable/14 releng/14.0
Sponsored by:           Kumacom SAS
Differential Revision:  https://reviews.freebsd.org/D40959
This commit is contained in:
Olivier Certner 2023-08-18 01:54:47 +02:00 committed by Mitchell Horne
parent ffd3ef8ee0
commit 845b7c8088

View file

@ -34,9 +34,9 @@
.Sh SYNOPSIS
.In sys/param.h
.In sys/ucred.h
.Ft int
.Ft bool
.Fn groupmember "gid_t gid" "struct ucred *cred"
.Ft int
.Ft bool
.Fn realgroupmember "gid_t gid" "struct ucred *cred"
.Sh DESCRIPTION
The
@ -57,9 +57,17 @@ Function
works the same except that it considers instead the real and supplementary
groups, and not the effective one.
.Sh RETURN VALUES
If the
.Fa gid
is found, 1 is returned, otherwise 0.
The
.Fn groupmember
and
.Fn realgroupmember
functions return
.Dv true
if the given credentials indicate membership of the group
.Fa gid ,
or
.Dv false
otherwise.
.Sh SEE ALSO
.Xr getgroups 2
.Xr setgroups 2