srg_requirement: |-
    {{{ full_name }}} must enable auditing of processes that start prior to the audit daemon.

vuldiscussion: |-
    Without the capability to generate audit records, it would be difficult to establish, correlate, and investigate the events relating to an incident or identify those responsible for one.

    If auditing is enabled late in the startup process, the actions of some startup processes may not be audited. Some audit systems also maintain state information only available if auditing is enabled before a given process is created.



checktext: |-
    Verify that GRUB 2 is configured to enable auditing of processes that start prior to the audit daemon with the following commands:

    Check that the current GRUB 2 configuration enables auditing:

    $ sudo grubby --info=ALL | grep args | grep -v 'audit=1'

    If any output is returned, this is a finding.

    Check that auditing is enabled by default to persist in kernel updates:

    $ grep audit /etc/default/grub

    GRUB_CMDLINE_LINUX="audit=1"

    If "audit" is not set to "1", is missing, or is commented out, this is a finding.

fixtext: |-
    Enable auditing of processes that start prior to the audit daemon with the following command:

    $ sudo grubby --update-kernel=ALL --args="audit=1"

    Add or modify the following line in "/etc/default/grub" to ensure the configuration survives kernel updates:

    GRUB_CMDLINE_LINUX="audit=1"


