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 "mount" -}}
|
|
|
|
{{- template "qualifier" . -}}
|
|
|
|
{{- "mount" -}}
|
|
|
|
{{- with .FsType -}}
|
|
|
|
{{ " fstype=" }}{{ . }}
|
|
|
|
{{- end -}}
|
2024-06-29 23:33:45 +02:00
|
|
|
{{- .Padding 2 -}}
|
2024-04-17 19:02:41 +02:00
|
|
|
{{- with .Options -}}
|
2024-04-23 22:27:35 +02:00
|
|
|
{{ " options=" }}{{ cjoin . }}
|
2024-04-17 19:02:41 +02:00
|
|
|
{{- end -}}
|
2024-06-29 23:33:45 +02:00
|
|
|
{{- .Padding 3 -}}
|
2024-04-17 19:02:41 +02:00
|
|
|
{{- with .Source -}}
|
|
|
|
{{ " " }}{{ . }}
|
|
|
|
{{- end -}}
|
2024-06-29 23:33:45 +02:00
|
|
|
{{- .Padding 4 -}}
|
2024-04-17 19:02:41 +02:00
|
|
|
{{- with .MountPoint -}}
|
|
|
|
{{ " -> " }}{{ . }}
|
|
|
|
{{- end -}}
|
|
|
|
{{- "," -}}
|
2024-06-29 23:33:45 +02:00
|
|
|
{{- .Padding 5 -}}
|
2024-04-17 19:02:41 +02:00
|
|
|
{{- template "comment" . -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- define "remount" -}}
|
|
|
|
{{- template "qualifier" . -}}
|
|
|
|
{{- "remount" -}}
|
|
|
|
{{- with .FsType -}}
|
|
|
|
{{ " fstype=" }}{{ . }}
|
|
|
|
{{- end -}}
|
2024-06-29 23:33:45 +02:00
|
|
|
{{- .Padding 2 -}}
|
2024-04-17 19:02:41 +02:00
|
|
|
{{- with .Options -}}
|
2024-04-23 22:27:35 +02:00
|
|
|
{{ " options=" }}{{ cjoin . }}
|
2024-04-17 19:02:41 +02:00
|
|
|
{{- end -}}
|
2024-06-29 23:33:45 +02:00
|
|
|
{{- .Padding 3 -}}
|
2024-04-17 19:02:41 +02:00
|
|
|
{{- with .MountPoint -}}
|
|
|
|
{{ " " }}{{ . }}
|
|
|
|
{{- end -}}
|
|
|
|
{{- "," -}}
|
2024-06-29 23:33:45 +02:00
|
|
|
{{- .Padding 4 -}}
|
2024-04-17 19:02:41 +02:00
|
|
|
{{- template "comment" . -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- define "umount" -}}
|
|
|
|
{{- template "qualifier" . -}}
|
|
|
|
{{- "umount" -}}
|
|
|
|
{{- with .FsType -}}
|
|
|
|
{{ " fstype=" }}{{ . }}
|
|
|
|
{{- end -}}
|
2024-06-29 23:33:45 +02:00
|
|
|
{{- .Padding 2 -}}
|
2024-04-17 19:02:41 +02:00
|
|
|
{{- with .Options -}}
|
2024-04-23 22:27:35 +02:00
|
|
|
{{ " options=" }}{{ cjoin . }}
|
2024-04-17 19:02:41 +02:00
|
|
|
{{- end -}}
|
2024-06-29 23:33:45 +02:00
|
|
|
{{- .Padding 3 -}}
|
2024-04-17 19:02:41 +02:00
|
|
|
{{- with .MountPoint -}}
|
|
|
|
{{ " " }}{{ . }}
|
|
|
|
{{- end -}}
|
|
|
|
{{- "," -}}
|
2024-06-29 23:33:45 +02:00
|
|
|
{{- .Padding 4 -}}
|
2024-04-17 19:02:41 +02:00
|
|
|
{{- template "comment" . -}}
|
|
|
|
{{- end -}}
|