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 */ -}}
|
|
|
|
|
|
|
|
{{- define "unix" -}}
|
|
|
|
{{- template "qualifier" . -}}
|
|
|
|
{{- "unix" -}}
|
|
|
|
{{- with .Access -}}
|
2024-04-23 22:27:35 +02:00
|
|
|
{{ " " }}{{ cjoin . }}
|
2024-04-17 19:02:41 +02:00
|
|
|
{{- end -}}
|
|
|
|
{{- with .Type -}}
|
|
|
|
{{ " type=" }}{{ . }}
|
|
|
|
{{- end -}}
|
|
|
|
{{- with .Protocol -}}
|
|
|
|
{{ " protocol=" }}{{ . }}
|
|
|
|
{{- end -}}
|
|
|
|
{{- with .Address -}}
|
|
|
|
{{ " addr=" }}{{ . }}
|
|
|
|
{{- end -}}
|
|
|
|
{{- with .Label -}}
|
|
|
|
{{ " label=" }}{{ . }}
|
|
|
|
{{- end -}}
|
|
|
|
{{- if and .PeerLabel .PeerAddr -}}
|
|
|
|
{{ " peer=(label=" }}{{ .PeerLabel }}{{ ", addr="}}{{ .PeerAddr }}{{ ")" }}
|
|
|
|
{{- else -}}
|
|
|
|
{{- with .PeerLabel -}}
|
|
|
|
{{ overindent "peer=(label=" }}{{ . }}{{ ")" }}
|
|
|
|
{{- end -}}
|
|
|
|
{{- with .PeerAddr -}}
|
|
|
|
{{ overindent "peer=(addr=" }}{{ . }}{{ ")" }}
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- "," -}}
|
|
|
|
{{- template "comment" . -}}
|
|
|
|
{{- end -}}
|