]> Git Repo - J-linux.git/commit
audit: return early if the filter rule has a lower priority
authorGaosheng Cui <[email protected]>
Sat, 16 Oct 2021 07:23:51 +0000 (15:23 +0800)
committerPaul Moore <[email protected]>
Mon, 18 Oct 2021 22:34:37 +0000 (18:34 -0400)
commitd9516f346e8b8e9c7dd37976a06a5bde1a871d6f
tree0aba70364c97f813187391fb16cc08fae0c151cb
parent571e5c0efcb29c5dac8cf2949d3eed84ec43056c
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 <[email protected]>
[PM: slight tweak to the subject line]
Signed-off-by: Paul Moore <[email protected]>
kernel/auditsc.c
This page took 0.049895 seconds and 4 git commands to generate.