2024-04-15 15:09:04 +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 */ -}}
|
|
|
|
|
|
|
|
{{- define "profile" -}}
|
|
|
|
|
2024-04-23 22:27:35 +02:00
|
|
|
{{- "profile" -}}
|
|
|
|
{{- with .Name -}}
|
|
|
|
{{ " " }}{{ . }}
|
2024-04-15 15:09:04 +02:00
|
|
|
{{- end -}}
|
2024-04-23 22:27:35 +02:00
|
|
|
{{- with .Attachments -}}
|
|
|
|
{{ " " }}{{ join . }}
|
2024-04-15 15:09:04 +02:00
|
|
|
{{- end -}}
|
2024-04-23 22:27:35 +02:00
|
|
|
{{- with .Attributes -}}
|
|
|
|
{{ " xattrs=(" }}{{ join . }}{{ ")" }}
|
2024-04-15 15:09:04 +02:00
|
|
|
{{- end -}}
|
2024-04-23 22:27:35 +02:00
|
|
|
{{- with .Flags -}}
|
|
|
|
{{ " flags=(" }}{{ join . }}{{ ")" }}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- " {\n" -}}
|
|
|
|
{{- setindent "++" -}}
|
|
|
|
{{- template "rules" .Rules -}}
|
|
|
|
{{- setindent "--" -}}
|
|
|
|
{{- indent "}" -}}
|
2024-04-15 15:09:04 +02:00
|
|
|
|
|
|
|
{{- end -}}
|