xoxys.auditd/templates/etc/audit/rules.d/40-main.rules.j2

14 lines
320 B
Django/Jinja

{% for item in (auditd_main_rules_default + auditd_main_rules_extra) %}
{% if item.comment is defined and item.comment %}
## {{ item.comment }}
{% endif %}
{% if not item.rule is string and item.rule is iterable %}
{% for rule in item.rule %}
{{ rule }}
{% endfor %}
{% else %}
{{ item.rule }}
{% endif %}
{% endfor %}