feat(aa-log): improve error formating on rules.

This commit is contained in:
Alexandre Pujol 2023-10-20 23:11:11 +01:00
parent 04cae35e6e
commit 46d25ed922
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 45 additions and 13 deletions

View file

@ -1,5 +1,5 @@
{{- define "comment" -}}
{{- if or .FileInherit .NoNewPrivs -}}
{{- if or .FileInherit .NoNewPrivs .Optional .Comment -}}
{{- " #" -}}
{{- end -}}
{{- if .FileInherit -}}
@ -8,4 +8,10 @@
{{- if .NoNewPrivs -}}
{{- " no new privs" -}}
{{- end -}}
{{- if .Optional -}}
{{- " optional:" -}}
{{- end -}}
{{- with .Comment -}}
{{ " " }}{{ . }}
{{- end -}}
{{- end -}}