Page MenuHomeFreeBSD

D47304.diff
No OneTemporary

D47304.diff

diff --git a/sys/security/mac_do/mac_do.c b/sys/security/mac_do/mac_do.c
--- a/sys/security/mac_do/mac_do.c
+++ b/sys/security/mac_do/mac_do.c
@@ -411,7 +411,7 @@
{
if (r->from_type == RULE_UID && r->f_uid == cred->cr_uid)
return (true);
- if (r->from_type == RULE_GID && r->f_gid == cred->cr_gid)
+ if (r->from_type == RULE_GID && groupmember(r->f_gid, cred))
return (true);
return (false);
}
@@ -516,7 +516,7 @@
}
}
if (r->from_type == RULE_GID) {
- if (cred->cr_gid != r->f_gid)
+ if (!groupmember(r->f_gid, cred))
continue;
if (r->to_type == RULE_ANY) {
error = 0;

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 28, 10:49 AM (13 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17829205
Default Alt Text
D47304.diff (610 B)

Event Timeline