From 1da007312065cbe6f48a97f104bd6a125f24e032 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sat, 30 Sep 2023 13:22:04 +0100 Subject: [PATCH] refractor: rename comment template. --- pkg/aa/templates/{comments.j2 => comment.j2} | 2 +- pkg/aa/templates/profile.j2 | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) rename pkg/aa/templates/{comments.j2 => comment.j2} (86%) diff --git a/pkg/aa/templates/comments.j2 b/pkg/aa/templates/comment.j2 similarity index 86% rename from pkg/aa/templates/comments.j2 rename to pkg/aa/templates/comment.j2 index 6a5217f5..a5228956 100644 --- a/pkg/aa/templates/comments.j2 +++ b/pkg/aa/templates/comment.j2 @@ -1,4 +1,4 @@ -{{- define "comments" -}} +{{- define "comment" -}} {{- if .FileInherit -}} {{- " # file_inherit" -}} {{- end -}} diff --git a/pkg/aa/templates/profile.j2 b/pkg/aa/templates/profile.j2 index fe28a962..47f49055 100644 --- a/pkg/aa/templates/profile.j2 +++ b/pkg/aa/templates/profile.j2 @@ -57,7 +57,7 @@ {{- end -}} {{- if eq $type "Capability" -}} - {{ template "qualifier" . }}{{ "capability " }}{{ .Name }}{{ "," }}{{ template "comments" . }} + {{ template "qualifier" . }}{{ "capability " }}{{ .Name }}{{ "," }}{{ template "comment" . }} {{- end -}} {{- if eq $type "Network" -}} @@ -74,7 +74,7 @@ {{- end -}} {{- end -}} {{- "," -}} - {{- template "comments" . -}} + {{- template "comment" . -}} {{- end -}} {{- if eq $type "Mount" -}} @@ -93,7 +93,7 @@ {{ " -> " }}{{ . }} {{- end -}} {{- "," -}} - {{- template "comments" . -}} + {{- template "comment" . -}} {{- end -}} {{- if eq $type "Umount" -}} @@ -109,7 +109,7 @@ {{ " " }}{{ . }} {{- end -}} {{- "," -}} - {{- template "comments" . -}} + {{- template "comment" . -}} {{- end -}} {{- if eq $type "Remount" -}} @@ -125,7 +125,7 @@ {{ " " }}{{ . }} {{- end -}} {{- "," -}} - {{- template "comments" . -}} + {{- template "comment" . -}} {{- end -}} {{- if eq $type "Unix" -}} @@ -148,7 +148,7 @@ {{- ")" -}} {{- end -}} {{- "," -}} - {{- template "comments" . -}} + {{- template "comment" . -}} {{- end -}} {{- if eq $type "Ptrace" -}} @@ -161,7 +161,7 @@ {{ " peer=" }}{{ . }} {{- end -}} {{- "," -}} - {{- template "comments" . -}} + {{- template "comment" . -}} {{- end -}} {{- if eq $type "Signal" -}} @@ -177,7 +177,7 @@ {{ " peer=" }}{{ . }} {{- end -}} {{- "," -}} - {{- template "comments" . -}} + {{- template "comment" . -}} {{- end -}} {{- if eq $type "Dbus" -}} @@ -212,7 +212,7 @@ {{- end -}} {{- end -}} {{- "," -}} - {{- template "comments" . -}} + {{- template "comment" . -}} {{- end -}} {{- if eq $type "File" -}} @@ -222,7 +222,7 @@ {{ " -> " }}{{ . }} {{- end -}} {{- "," -}} - {{- template "comments" . -}} + {{- template "comment" . -}} {{- end -}} {{- "\n" -}}