mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
18 lines
425 B
Django/Jinja
18 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 -}}
|