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