apparmor.d/pkg/aa/templates/comment.j2

18 lines
425 B
Text
Raw Normal View History

2023-09-30 14:22:04 +02:00
{{- define "comment" -}}
{{- if or .FileInherit .NoNewPrivs .Optional .Comment -}}
2023-09-30 14:22:46 +02:00
{{- " #" -}}
{{- end -}}
2023-09-29 21:28:56 +02:00
{{- if .FileInherit -}}
2023-09-30 14:22:46 +02:00
{{- " file_inherit" -}}
2023-09-29 21:28:56 +02:00
{{- end -}}
{{- if .NoNewPrivs -}}
2023-09-30 14:22:46 +02:00
{{- " no new privs" -}}
2023-09-29 21:28:56 +02:00
{{- end -}}
{{- if .Optional -}}
{{- " optional:" -}}
{{- end -}}
{{- with .Comment -}}
{{ " " }}{{ . }}
{{- end -}}
2023-09-29 21:28:56 +02:00
{{- end -}}