Commit 5c1390c9 authored by Mikhail Klementyev's avatar Mikhail Klementyev Committed by Paul Moore

audit: obsolete audit_context check is removed in audit_filter_rules()

Signed-off-by: default avatarMikhail Klementyev <jollheef@riseup.net>
[PM: patch applied by hand due to HTML mangling, rewrote subject line]
Signed-off-by: default avatarPaul Moore <pmoore@redhat.com>
parent 22011964
...@@ -599,9 +599,7 @@ static int audit_filter_rules(struct task_struct *tsk, ...@@ -599,9 +599,7 @@ static int audit_filter_rules(struct task_struct *tsk,
result = match_tree_refs(ctx, rule->tree); result = match_tree_refs(ctx, rule->tree);
break; break;
case AUDIT_LOGINUID: case AUDIT_LOGINUID:
result = 0; result = audit_uid_comparator(tsk->loginuid, f->op, f->uid);
if (ctx)
result = audit_uid_comparator(tsk->loginuid, f->op, f->uid);
break; break;
case AUDIT_LOGINUID_SET: case AUDIT_LOGINUID_SET:
result = audit_comparator(audit_loginuid_set(tsk), f->op, f->val); result = audit_comparator(audit_loginuid_set(tsk), f->op, f->val);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment