This is a note to let you know that I've just added the patch titled apparmor: fix quiet_denied for file rules to the 5.15-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: apparmor-fix-quiet_denied-for-file-rules.patch and it can be found in the queue-5.15 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 68ff8540cc9e4ab557065b3f635c1ff4c96e1f1c Mon Sep 17 00:00:00 2001 From: John Johansen <john.johansen@xxxxxxxxxxxxx> Date: Thu, 29 Apr 2021 01:48:28 -0700 Subject: apparmor: fix quiet_denied for file rules From: John Johansen <john.johansen@xxxxxxxxxxxxx> commit 68ff8540cc9e4ab557065b3f635c1ff4c96e1f1c upstream. 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@xxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- security/apparmor/audit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/security/apparmor/audit.c +++ b/security/apparmor/audit.c @@ -137,7 +137,7 @@ int aa_audit(int type, struct aa_profile } if (AUDIT_MODE(profile) == AUDIT_QUIET || (type == AUDIT_APPARMOR_DENIED && - AUDIT_MODE(profile) == AUDIT_QUIET)) + AUDIT_MODE(profile) == AUDIT_QUIET_DENIED)) return aad(sa)->error; if (KILL_MODE(profile) && type == AUDIT_APPARMOR_DENIED) Patches currently in stable-queue which might be from john.johansen@xxxxxxxxxxxxx are queue-5.15/apparmor-fix-absroot-causing-audited-secids-to-begin-with.patch queue-5.15/apparmor-fix-memleak-in-aa_simple_write_to_buffer.patch queue-5.15/apparmor-fix-setting-unconfined-mode-on-a-loaded-profile.patch queue-5.15/apparmor-fix-quiet_denied-for-file-rules.patch queue-5.15/apparmor-fix-aa_label_asxprint-return-check.patch queue-5.15/apparmor-fix-overlapping-attachment-computation.patch queue-5.15/apparmor-fix-reference-count-leak-in-aa_pivotroot.patch queue-5.15/apparmor-fix-failed-mount-permission-check-error-message.patch