mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-23 21:46:44 +01:00
feat(aa-log): update aa module to last changes.
This commit is contained in:
parent
8a8808194b
commit
978daa446b
1 changed files with 5 additions and 5 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue