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)
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())