mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(aa): support multiple comments.
This commit is contained in:
parent
1da0073120
commit
e93c1bf4d8
1 changed files with 5 additions and 2 deletions
|
@ -1,8 +1,11 @@
|
||||||
{{- define "comment" -}}
|
{{- define "comment" -}}
|
||||||
|
{{- if or .FileInherit .NoNewPrivs -}}
|
||||||
|
{{- " #" -}}
|
||||||
|
{{- end -}}
|
||||||
{{- if .FileInherit -}}
|
{{- if .FileInherit -}}
|
||||||
{{- " # file_inherit" -}}
|
{{- " file_inherit" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if .NoNewPrivs -}}
|
{{- if .NoNewPrivs -}}
|
||||||
{{- " # no new privs" -}}
|
{{- " no new privs" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in a new issue