mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-24 14:06:47 +01:00
17 lines
425 B
Django/Jinja
17 lines
425 B
Django/Jinja
{{- define "comment" -}}
|
|
{{- if or .FileInherit .NoNewPrivs .Optional .Comment -}}
|
|
{{- " #" -}}
|
|
{{- end -}}
|
|
{{- if .FileInherit -}}
|
|
{{- " file_inherit" -}}
|
|
{{- end -}}
|
|
{{- if .NoNewPrivs -}}
|
|
{{- " no new privs" -}}
|
|
{{- end -}}
|
|
{{- if .Optional -}}
|
|
{{- " optional:" -}}
|
|
{{- end -}}
|
|
{{- with .Comment -}}
|
|
{{ " " }}{{ . }}
|
|
{{- end -}}
|
|
{{- end -}}
|