chore(aa-log): minor template improvement.

This commit is contained in:
Alexandre Pujol 2023-11-29 22:08:37 +00:00
parent 60e4a01a76
commit 07a6f35b4e
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 3 additions and 3 deletions

View file

@ -108,7 +108,7 @@ var (
} }
// Change Profile // Change Profile
changeprofile1LogStr = `apparmor="ALLOWED" operation="change_onexec" class="file" profile="systemd" name="systemd-user" comm="(systemd)" target="systemd-user"` // changeprofile1LogStr = `apparmor="ALLOWED" operation="change_onexec" class="file" profile="systemd" name="systemd-user" comm="(systemd)" target="systemd-user"`
changeprofile1Log = map[string]string{ changeprofile1Log = map[string]string{
"apparmor": "ALLOWED", "apparmor": "ALLOWED",
"class": "file", "class": "file",

View file

@ -231,7 +231,7 @@
{{ overindent "interface=" }}{{ . }}{{ "\n" }} {{ overindent "interface=" }}{{ . }}{{ "\n" }}
{{- end -}} {{- end -}}
{{- with .Member -}} {{- with .Member -}}
{{ overindent "member=" }}{{ . }}{{ " " }}{{ "\n" }} {{ overindent "member=" }}{{ . }}{{ "\n" }}
{{- end -}} {{- end -}}
{{- if and .Name .Label -}} {{- if and .Name .Label -}}
{{ overindent "peer=(name=" }}{{ .Name }}{{ ", label="}}{{ .Label }}{{ ")" }} {{ overindent "peer=(name=" }}{{ .Name }}{{ ", label="}}{{ .Label }}{{ ")" }}