From 978daa446b900e1d78a8610d57b610a1b35f9e77 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Wed, 24 Apr 2024 21:58:15 +0100 Subject: [PATCH] feat(aa-log): update aa module to last changes. --- cmd/aa-log/main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/aa-log/main.go b/cmd/aa-log/main.go index cbc59c9e..dde4e2ca 100644 --- a/cmd/aa-log/main.go +++ b/cmd/aa-log/main.go @@ -67,11 +67,11 @@ func aaLog(logger string, path string, profile string) error { aaLogs := logs.NewApparmorLogs(file, profile) if rules { profiles := aaLogs.ParseToProfiles() - for _, profile := range profiles { - profile.MergeRules() - profile.Sort() - profile.Format() - fmt.Print(profile.String() + "\n") + for _, p := range profiles { + p.Merge() + p.Sort() + p.Format() + fmt.Print(p.String() + "\n\n") } } else { fmt.Print(aaLogs.String())