Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102708949
D47592.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
853 B
Referenced Files
None
Subscribers
None
D47592.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
@@ -406,7 +406,7 @@
}
static bool
-rule_is_valid(struct ucred *cred, struct rule *r)
+rule_applies(struct ucred *cred, struct rule *r)
{
if (r->from_type == RULE_UID && r->f_uid == cred->cr_uid)
return (true);
@@ -427,7 +427,7 @@
rule = mac_do_rule_find(cred->cr_prison, &pr);
TAILQ_FOREACH(r, &rule->head, r_entries) {
- if (rule_is_valid(cred, r)) {
+ if (rule_applies(cred, r)) {
switch (priv) {
case PRIV_CRED_SETGROUPS:
case PRIV_CRED_SETUID:
@@ -466,7 +466,7 @@
rule = mac_do_rule_find(cred->cr_prison, &pr);
TAILQ_FOREACH(r, &rule->head, r_entries) {
- if (rule_is_valid(cred, r)) {
+ if (rule_applies(cred, r)) {
mtx_unlock(&pr->pr_mtx);
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 4:24 AM (21 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14661793
Default Alt Text
D47592.diff (853 B)
Attached To
Mode
D47592: MAC/do: Rename rule_is_valid() => rule_applies()
Attached
Detach File
Event Timeline
Log In to Comment