diff options
author | Gaosheng Cui <cuigaosheng1@huawei.com> | 2021-10-16 09:23:51 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-10-19 00:34:37 +0200 |
commit | d9516f346e8b8e9c7dd37976a06a5bde1a871d6f (patch) | |
tree | 0aba70364c97f813187391fb16cc08fae0c151cb /kernel/audit_tree.c | |
parent | audit: add OPENAT2 record to list "how" info (diff) | |
download | linux-d9516f346e8b8e9c7dd37976a06a5bde1a871d6f.tar.xz linux-d9516f346e8b8e9c7dd37976a06a5bde1a871d6f.zip |
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: Gaosheng Cui <cuigaosheng1@huawei.com>
[PM: slight tweak to the subject line]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/audit_tree.c')
0 files changed, 0 insertions, 0 deletions