Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35635
b: refs/heads/master
c: 9a2f44f
h: refs/heads/master
i:
  35633: 7b3be7f
  35631: a9d7b0d
v: v3
  • Loading branch information
Stephen Smalley authored and Linus Torvalds committed Sep 26, 2006
1 parent 9f547b8 commit 0e38676
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 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: 1a70cd40cb291c25b67ec0da715a49d76719329d
refs/heads/master: 9a2f44f01a67a6ecca71515af999895b45a2aeb0
6 changes: 3 additions & 3 deletions trunk/include/linux/selinux.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void selinux_audit_rule_free(struct selinux_audit_rule *rule);

/**
* selinux_audit_rule_match - determine if a context ID matches a rule.
* @ctxid: the context ID to check
* @sid: the context ID to check
* @field: the field this rule refers to
* @op: the operater the rule uses
* @rule: pointer to the audit rule to check against
Expand All @@ -55,7 +55,7 @@ void selinux_audit_rule_free(struct selinux_audit_rule *rule);
* Returns 1 if the context id matches the rule, 0 if it does not, and
* -errno on failure.
*/
int selinux_audit_rule_match(u32 ctxid, u32 field, u32 op,
int selinux_audit_rule_match(u32 sid, u32 field, u32 op,
struct selinux_audit_rule *rule,
struct audit_context *actx);

Expand Down Expand Up @@ -144,7 +144,7 @@ static inline void selinux_audit_rule_free(struct selinux_audit_rule *rule)
return;
}

static inline int selinux_audit_rule_match(u32 ctxid, u32 field, u32 op,
static inline int selinux_audit_rule_match(u32 sid, u32 field, u32 op,
struct selinux_audit_rule *rule,
struct audit_context *actx)
{
Expand Down
6 changes: 3 additions & 3 deletions trunk/security/selinux/ss/services.c
Original file line number Diff line number Diff line change
Expand Up @@ -2003,7 +2003,7 @@ int selinux_audit_rule_init(u32 field, u32 op, char *rulestr,
return rc;
}

int selinux_audit_rule_match(u32 ctxid, u32 field, u32 op,
int selinux_audit_rule_match(u32 sid, u32 field, u32 op,
struct selinux_audit_rule *rule,
struct audit_context *actx)
{
Expand All @@ -2026,11 +2026,11 @@ int selinux_audit_rule_match(u32 ctxid, u32 field, u32 op,
goto out;
}

ctxt = sidtab_search(&sidtab, ctxid);
ctxt = sidtab_search(&sidtab, sid);
if (!ctxt) {
audit_log(actx, GFP_ATOMIC, AUDIT_SELINUX_ERR,
"selinux_audit_rule_match: unrecognized SID %d\n",
ctxid);
sid);
match = -ENOENT;
goto out;
}
Expand Down

0 comments on commit 0e38676

Please sign in to comment.