Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166640180
D47845.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
591 B
Referenced Files
None
Subscribers
None
D47845.diff
View Options
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
@@ -1906,9 +1906,9 @@
static bool
rule_applies(const struct rule *const rule, const struct ucred *const cred)
{
- if (rule->from_type == IT_UID && rule->from_id == cred->cr_uid)
+ if (rule->from_type == IT_UID && rule->from_id == cred->cr_ruid)
return (true);
- if (rule->from_type == IT_GID && groupmember(rule->from_id, cred))
+ if (rule->from_type == IT_GID && realgroupmember(rule->from_id, cred))
return (true);
return (false);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 16, 3:08 AM (12 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36811526
Default Alt Text
D47845.diff (591 B)
Attached To
Mode
D47845: MAC/do: Apply a rule on real UID/GID instead of effective ones
Attached
Detach File
Event Timeline
Log In to Comment