Skip to content
Commit d9516f34 authored by Gaosheng Cui's avatar Gaosheng Cui Committed by Paul Moore
Browse files

audit: return early if the filter rule has a lower priority



It is not necessary for audit_filter_rules() functions to check
audit fileds of the rule with a lower priority, and if we did,
there might be some unintended effects, such as the ctx->ppid
may be changed unexpectedly, so return early if the rule has
a lower priority.

Signed-off-by: default avatarGaosheng Cui <cuigaosheng1@huawei.com>
[PM: slight tweak to the subject line]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 571e5c0e
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