FAILED: patch "[PATCH] apparmor: fix quiet_denied for file rules" failed to apply to 4.9-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 4.9-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 68ff8540cc9e4ab557065b3f635c1ff4c96e1f1c Mon Sep 17 00:00:00 2001
From: John Johansen <[email protected]>
Date: Thu, 29 Apr 2021 01:48:28 -0700
Subject: [PATCH] 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 <[email protected]>
security/apparmor/audit.c +1 -1
@@ -137,7 +137,7 @@ int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa, }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 )