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 -}}