Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146418
b: refs/heads/master
c: 53fc0e2
h: refs/heads/master
v: v3
  • Loading branch information
Mimi Zohar authored and James Morris committed May 6, 2009
1 parent fea9f8e commit 6564f18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 78a3d9d5654a7fd99cf8b2ab06b9497b9c7aad64
refs/heads/master: 53fc0e2259f261602a2750dcc82b8d7bf04d3c35
8 changes: 4 additions & 4 deletions trunk/security/integrity/ima/ima_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static bool ima_match_rules(struct ima_measure_rule_entry *rule,
if ((rule->flags & IMA_UID) && rule->uid != tsk->cred->uid)
return false;
for (i = 0; i < MAX_LSM_RULES; i++) {
int rc;
int rc = 0;
u32 osid, sid;

if (!rule->lsm[i].rule)
Expand All @@ -109,7 +109,7 @@ static bool ima_match_rules(struct ima_measure_rule_entry *rule,
security_inode_getsecid(inode, &osid);
rc = security_filter_rule_match(osid,
rule->lsm[i].type,
AUDIT_EQUAL,
Audit_equal,
rule->lsm[i].rule,
NULL);
break;
Expand All @@ -119,7 +119,7 @@ static bool ima_match_rules(struct ima_measure_rule_entry *rule,
security_task_getsecid(tsk, &sid);
rc = security_filter_rule_match(sid,
rule->lsm[i].type,
AUDIT_EQUAL,
Audit_equal,
rule->lsm[i].rule,
NULL);
default:
Expand Down Expand Up @@ -227,7 +227,7 @@ static int ima_lsm_rule_init(struct ima_measure_rule_entry *entry,

entry->lsm[lsm_rule].type = audit_type;
result = security_filter_rule_init(entry->lsm[lsm_rule].type,
AUDIT_EQUAL, args,
Audit_equal, args,
&entry->lsm[lsm_rule].rule);
return result;
}
Expand Down

0 comments on commit 6564f18

Please sign in to comment.