2024-04-17 19:02:41 +02:00
|
|
|
{{- /* apparmor.d - Full set of apparmor profiles */ -}}
|
|
|
|
{{- /* Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io> */ -}}
|
|
|
|
{{- /* SPDX-License-Identifier: GPL-2.0-only */ -}}
|
|
|
|
|
2023-09-30 14:22:04 +02:00
|
|
|
{{- define "comment" -}}
|
2023-10-21 00:11:11 +02:00
|
|
|
{{- if or .FileInherit .NoNewPrivs .Optional .Comment -}}
|
2024-04-23 22:27:35 +02:00
|
|
|
{{- if .IsLineRule }}
|
|
|
|
{{- "#" -}}
|
|
|
|
{{- else -}}
|
2024-06-20 00:31:22 +02:00
|
|
|
{{- " #" -}}
|
2024-04-23 22:27:35 +02:00
|
|
|
{{- end -}}
|
|
|
|
{{- if .FileInherit -}}
|
|
|
|
{{- " file_inherit" -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- if .NoNewPrivs -}}
|
|
|
|
{{- " no new privs" -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- if .Optional -}}
|
|
|
|
{{- " optional:" -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- with .Comment -}}
|
2024-05-05 00:25:55 +02:00
|
|
|
{{ . }}
|
2024-04-23 22:27:35 +02:00
|
|
|
{{- end -}}
|
2023-10-21 00:11:11 +02:00
|
|
|
{{- end -}}
|
2023-09-29 21:28:56 +02:00
|
|
|
{{- end -}}
|