feat(aa): refractor apparmor templates to the last changes.
This commit is contained in:
parent
5483668574
commit
120db93396
15 changed files with 236 additions and 152 deletions
14
pkg/aa/templates/rule/variable.j2
Normal file
14
pkg/aa/templates/rule/variable.j2
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{{- /* apparmor.d - Full set of apparmor profiles */ -}}
|
||||
{{- /* Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io> */ -}}
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-only */ -}}
|
||||
|
||||
{{- define "variable" -}}
|
||||
{{- "@{" -}}{{- .Name -}}{{- "}" -}}
|
||||
{{- if .Define }}
|
||||
{{- " = " -}}
|
||||
{{- else -}}
|
||||
{{- " += " -}}
|
||||
{{- end -}}
|
||||
{{- join .Values -}}
|
||||
{{- template "comment" . -}}
|
||||
{{- end -}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue