aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Certner <olce.freebsd@certner.fr>2023-08-17 23:54:46 +0000
committerOlivier Certner <olce@FreeBSD.org>2023-12-21 13:38:15 +0000
commit0297e7213c0c0ce8bd7bdc107da953e8fb6b5815 (patch)
tree2a071f6da60968b76a9fbc5ce002338de4793405
parentf0951233c6d33da3c9a6bc347d9ae7aa911d7ca9 (diff)
cr_canseeothergids(): Policy change's manual pages impact
See previous commit that made cr_canseeothergids() use the new realgroupmember() function, taking into account real group IDs instead of effective ones. PR: 272093 Reviewed by: pauamma_gundo.com, mhorne Sponsored by: Kumacom SAS Differential Revision: https://reviews.freebsd.org/D40644 (cherry picked from commit 0452dd841336cea7cd979b13ef12b6ea5e992eff) Approved by: markj (mentor)
-rw-r--r--share/man/man9/cr_bsd_visible.92
-rw-r--r--share/man/man9/cr_canseeothergids.98
2 files changed, 5 insertions, 5 deletions
diff --git a/share/man/man9/cr_bsd_visible.9 b/share/man/man9/cr_bsd_visible.9
index bd676e6f5705..f2d42f3835dc 100644
--- a/share/man/man9/cr_bsd_visible.9
+++ b/share/man/man9/cr_bsd_visible.9
@@ -97,7 +97,7 @@ and
are not members of any common group
.Po
as determined by
-.Xr groupmember 9
+.Xr realgroupmember 9
.Pc .
.It Bq Er ESRCH
Credentials
diff --git a/share/man/man9/cr_canseeothergids.9 b/share/man/man9/cr_canseeothergids.9
index f0c1e5c4e726..109d41a8545d 100644
--- a/share/man/man9/cr_canseeothergids.9
+++ b/share/man/man9/cr_canseeothergids.9
@@ -48,9 +48,9 @@ This function checks if a subject associated to credentials
is denied seeing a subject or object associated to credentials
.Fa u2
by a policy that requires both credentials to have at least one group in common.
-For this determination, the effective and supplementary group IDs are used, but
-not the real group IDs, as per
-.Xr groupmember 9 .
+For this determination, the real and supplementary group IDs are used, but
+not the effective group IDs, as per
+.Xr realgroupmember 9 .
.Pp
This policy is active if and only if the
.Xr sysctl 8
@@ -79,5 +79,5 @@ Otherwise, it returns
.Er ESRCH .
.Sh SEE ALSO
.Xr cr_bsd_visible 9 ,
-.Xr groupmember 9 ,
+.Xr realgroupmember 9 ,
.Xr priv_check_cred 9