Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107327559
D46906.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D46906.diff
View Options
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -1280,13 +1280,13 @@
* Returns whether gid designates a supplementary group in cred.
*/
static bool
-supplementary_group_member(gid_t gid, struct ucred *cred)
+group_is_supplementary(const gid_t gid, const struct ucred *const cred)
{
int l, h, m;
/*
- * Perform a binary search of the supplemental groups. This is possible
- * because we sort the groups in crsetgroups().
+ * Perform a binary search of the supplementary groups. This is
+ * possible because we sort the groups in crsetgroups().
*/
l = 1;
h = cred->cr_ngroups;
@@ -1320,7 +1320,7 @@
if (gid == cred->cr_groups[0])
return (true);
- return (supplementary_group_member(gid, cred));
+ return (group_is_supplementary(gid, cred));
}
/*
@@ -1333,7 +1333,7 @@
if (gid == cred->cr_rgid)
return (true);
- return (supplementary_group_member(gid, cred));
+ return (group_is_supplementary(gid, cred));
}
/*
@@ -2316,7 +2316,7 @@
/*
* Copy groups in to a credential, preserving any necessary invariants.
- * Currently this includes the sorting of all supplemental gids.
+ * Currently this includes the sorting of all supplementary gids.
* crextend() must have been called before hand to ensure sufficient
* space is available.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 13, 1:36 PM (18 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14439230
Default Alt Text
D46906.diff (1 KB)
Attached To
Mode
D46906: cred: supplementary_group_member() => group_is_supplementary()
Attached
Detach File
Event Timeline
Log In to Comment