]> git.baikalelectronics.ru Git - kernel.git/commit
audit: return early if the filter rule has a lower priority
authorGaosheng Cui <cuigaosheng1@huawei.com>
Sat, 16 Oct 2021 07:23:51 +0000 (15:23 +0800)
committerPaul Moore <paul@paul-moore.com>
Mon, 18 Oct 2021 22:34:37 +0000 (18:34 -0400)
commit7584d986fff99c2388a8a1d0c5afefdeda967bf4
tree0aba70364c97f813187391fb16cc08fae0c151cb
parentc057171c69b491a3ee60fb3305d3dd2917ed32a2
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>
kernel/auditsc.c