Skip to content

Commit

Permalink
audit: obsolete audit_context check is removed in audit_filter_rules()
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Klementyev <jollheef@riseup.net>
[PM: patch applied by hand due to HTML mangling, rewrote subject line]
Signed-off-by: Paul Moore <pmoore@redhat.com>
  • Loading branch information
Mikhail Klementyev authored and Paul Moore committed May 29, 2015
1 parent 2201196 commit 5c1390c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,7 @@ static int audit_filter_rules(struct task_struct *tsk,
result = match_tree_refs(ctx, rule->tree);
break;
case AUDIT_LOGINUID:
result = 0;
if (ctx)
result = audit_uid_comparator(tsk->loginuid, f->op, f->uid);
result = audit_uid_comparator(tsk->loginuid, f->op, f->uid);
break;
case AUDIT_LOGINUID_SET:
result = audit_comparator(audit_loginuid_set(tsk), f->op, f->val);
Expand Down

0 comments on commit 5c1390c

Please sign in to comment.