diff --git a/linux_os/guide/system/auditing/bls_audit_option/rule.yml b/linux_os/guide/system/auditing/bls_audit_option/rule.yml index 4c34721729b3..ec4b3d35b793 100644 --- a/linux_os/guide/system/auditing/bls_audit_option/rule.yml +++ b/linux_os/guide/system/auditing/bls_audit_option/rule.yml @@ -1,6 +1,6 @@ documentation_complete: true -prodtype: rhcos4 +prodtype: fedora,rhcos4,rhel8 title: 'Enable Auditing for Processes Which Start Prior to the Audit Daemon' diff --git a/shared/templates/template_OVAL_bls_entries_option b/shared/templates/template_OVAL_bls_entries_option index 7a64337b1f13..3511b97d83b7 100644 --- a/shared/templates/template_OVAL_bls_entries_option +++ b/shared/templates/template_OVAL_bls_entries_option @@ -6,27 +6,102 @@ Ensure {{{ ARG_NAME_VALUE }}} option is configured in the 'options' line in /boot/loader/entries/*.conf. - + + + + + + + + +{{% if product in ["rhel8", "fedora"] %}} + + +{{% endif %}} - - - + + + - ^/boot/loader/entries/.*\.conf$ ^options (.*)$ 1 - + + + + + ^/boot/loader/entries/.*\.conf$ + ^options (.*)$ + 1 + state_{{{ SANITIZED_ARG_NAME }}}_option + + + + + + + + ^/boot/grub2/grubenv$ + ^kernelopts=(.*)$ + 1 + + + + + + + + ^/proc/cmdline$ + ^(.*)$ + 1 + + +{{% if product in ["rhel8", "fedora"] %}} + + + + + + /etc/default/grub + ^\s*GRUB_CMDLINE_LINUX="(.*)"$ + 1 + +{{% endif %}} + + ^(?:.*\s)?{{{ ESCAPED_ARG_NAME_VALUE }}}(?:\s.*)?$ + + + ^(?:.*\s)?\$kernelopts(?:\s.*)?$ +