feat(aa-log): update aa module to last changes.

This commit is contained in:
Alexandre Pujol 2024-04-24 21:58:15 +01:00
parent 8a8808194b
commit 978daa446b
Failed to generate hash of commit

View file

@ -67,11 +67,11 @@ func aaLog(logger string, path string, profile string) error {
aaLogs := logs.NewApparmorLogs(file, profile) aaLogs := logs.NewApparmorLogs(file, profile)
if rules { if rules {
profiles := aaLogs.ParseToProfiles() profiles := aaLogs.ParseToProfiles()
for _, profile := range profiles { for _, p := range profiles {
profile.MergeRules() p.Merge()
profile.Sort() p.Sort()
profile.Format() p.Format()
fmt.Print(profile.String() + "\n") fmt.Print(p.String() + "\n\n")
} }
} else { } else {
fmt.Print(aaLogs.String()) fmt.Print(aaLogs.String())