mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-24 14:06:47 +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)
|
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())
|
||||||
|
|
Loading…
Reference in a new issue