{{% macro audit_file_compare_criterion(file_id) %}} {{% endmacro %}}

{{% macro audit_file_compare_test(file_id) %}} /etc/audit/rules.d/{{{ file_id }}}.rules (?:.*\n)* 1 ^/usr/share/doc/audit(?:-\d.\d.\d)?/rules/{{{ file_id }}}.rules (?:.*\n)* 1 {{% endmacro %}}

{{{ oval_metadata("Compare configure audit rules against the recommended pre-configured files.") }}}

{{{- audit_file_compare_criterion("10-base-config") -}}} {{{- audit_file_compare_criterion("11-loginuid") -}}} {{{- audit_file_compare_criterion("30-ospp-v42") -}}} {{{- audit_file_compare_criterion("43-module-load") -}}}

{{{ audit_file_compare_test("10-base-config") }}} {{{ audit_file_compare_test("11-loginuid") }}} {{{ audit_file_compare_test("30-ospp-v42") }}} {{{ audit_file_compare_test("43-module-load") }}}