fix(aa-log): ensure the good profile is shown.

This commit is contained in:
Alexandre Pujol 2022-06-04 21:53:24 +01:00
parent a6a72cd5c3
commit 7a18cfed40
Failed to generate hash of commit

View file

@ -151,7 +151,7 @@ func (aaLogs AppArmorLogs) String() string {
} }
// Order of impression // Order of impression
keys := []string{ keys := []string{
"profile", "peer_label", // Profile name "profile", "label", // Profile name
"operation", "name", "operation", "name",
"mask", "bus", "path", "interface", "member", // dbus "mask", "bus", "path", "interface", "member", // dbus
"info", "comm", "info", "comm",
@ -161,7 +161,7 @@ func (aaLogs AppArmorLogs) String() string {
// Optional colors template to use // Optional colors template to use
colors := map[string]string{ colors := map[string]string{
"profile": FgBlue, "profile": FgBlue,
"peer_label": FgBlue, "label": FgBlue,
"operation": FgYellow, "operation": FgYellow,
"name": FgMagenta, "name": FgMagenta,
"mask": BoldRed, "mask": BoldRed,