From 671dcca38da2d214b75d9d3acb52ac4585768a4b Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 5 Jun 2022 14:54:26 +0100 Subject: [PATCH] feat(aa-log): allow profile selection for dbus rules. --- cmd/aa-log/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/aa-log/main.go b/cmd/aa-log/main.go index b387c9d7..aa47d9c0 100644 --- a/cmd/aa-log/main.go +++ b/cmd/aa-log/main.go @@ -89,7 +89,7 @@ func NewApparmorLogs(file io.Reader, profile string) AppArmorLogs { log := "" exp := "apparmor=(\"DENIED\"|\"ALLOWED\"|\"AUDIT\")" if profile != "" { - exp = fmt.Sprintf(exp+".* profile=\"%s.*\"", profile) + exp = fmt.Sprintf(exp+".* (profile=\"%s.*\"|label=\"%s.*\")", profile, profile) } isAppArmorLog := regexp.MustCompile(exp)