2023-09-30 14:22:04 +02:00
|
|
|
{{- define "comment" -}}
|
2023-10-21 00:11:11 +02:00
|
|
|
{{- 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 -}}
|
2023-10-21 00:11:11 +02:00
|
|
|
{{- if .Optional -}}
|
|
|
|
{{- " optional:" -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- with .Comment -}}
|
|
|
|
{{ " " }}{{ . }}
|
|
|
|
{{- end -}}
|
2023-09-29 21:28:56 +02:00
|
|
|
{{- end -}}
|