From e93c1bf4d81af6b5341f6f2bf48f1057748f0ce2 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sat, 30 Sep 2023 13:22:46 +0100 Subject: [PATCH] feat(aa): support multiple comments. --- pkg/aa/templates/comment.j2 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/aa/templates/comment.j2 b/pkg/aa/templates/comment.j2 index a5228956..bcc799b8 100644 --- a/pkg/aa/templates/comment.j2 +++ b/pkg/aa/templates/comment.j2 @@ -1,8 +1,11 @@ {{- define "comment" -}} + {{- if or .FileInherit .NoNewPrivs -}} + {{- " #" -}} + {{- end -}} {{- if .FileInherit -}} - {{- " # file_inherit" -}} + {{- " file_inherit" -}} {{- end -}} {{- if .NoNewPrivs -}} - {{- " # no new privs" -}} + {{- " no new privs" -}} {{- end -}} {{- end -}}