apparmor: fix quiet_denied for file rules
authorJohn Johansen <john.johansen@canonical.com>
Thu, 29 Apr 2021 08:48:28 +0000 (01:48 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 26 Jan 2022 09:33:05 +0000 (01:33 -0800)
commit70cb9f8d1242cd72a7f237da0a7f1523d3424cde
tree2358adbad38afff7b5a42111f4c9663541d43165
parent0b01476aea643b3efc1f294477b936a9bdb36d8b
apparmor: fix quiet_denied for file rules

Global quieting of denied AppArmor generated file events is not
handled correctly. Unfortunately the is checking if quieting of all
audit events is set instead of just denied events.

Fixes: 67012e8209df ("AppArmor: basic auditing infrastructure.")
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/audit.c