Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
The remediations for content_rule_bootloader_audit_argument use grubby to update the kernel command line to enable auditing prior to audit daemon start up.
The OVAL check looks for the "audit=1" argument in /etc/default/grub.
grubby adds the argument to /boot/grub2/grub.cg on an x86_64 BIOS based system.
Version-Release number of selected component (if applicable):
scap-security-guide-0.1.36-7.el7.noarch
grubby-8.28-23.el7.x86_64
How reproducible:
Always
Steps to Reproduce:
1. Apply bash or ansible remediation to system
2. Scan with C2S profile that has check enabled
3.
Actual results:
"Enable Auditing for Processes Which Start Prior to the Audit Daemon" marked as failed
Expected results:
"Enable Auditing for Processes Which Start Prior to the Audit Daemon" passes
Additional info:
I don't know if this is a recent behavior change for grubby but the man page on a RHEL 7.5 Beta system shows the following defaults for grub2 config files.
These defaults are listed in the table below.
┌────────────────┬────────────┬─────────────────────────────────┐
│ Arch │ Bootloader │ Configuration File │
├────────────────┼────────────┼─────────────────────────────────┤
│ x86_64 [BIOS] │ grub2 │ /boot/grub2/grub.cfg │
├────────────────┼────────────┼─────────────────────────────────┤
│ x86_64 [UEFI] │ grub2 │ /boot/efi/EFI/redhat/grub.cfg │
The description and warnings (edit /etc/default/grub and rebuild grub.cfg with grub-mkconfig ) match the OVAL expectations, but not what the remediations do.
Check of this rule seem to be correct only in RHEL6. In RHEL7, grubby is used to generate grub.cfg, and it doesn't interact with the /etc/default/grub file at all.
Therefore, this rule needs to be fixed for RHEL>=7
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (scap-security-guide bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2020:3909
Description of problem: The remediations for content_rule_bootloader_audit_argument use grubby to update the kernel command line to enable auditing prior to audit daemon start up. The OVAL check looks for the "audit=1" argument in /etc/default/grub. grubby adds the argument to /boot/grub2/grub.cg on an x86_64 BIOS based system. Version-Release number of selected component (if applicable): scap-security-guide-0.1.36-7.el7.noarch grubby-8.28-23.el7.x86_64 How reproducible: Always Steps to Reproduce: 1. Apply bash or ansible remediation to system 2. Scan with C2S profile that has check enabled 3. Actual results: "Enable Auditing for Processes Which Start Prior to the Audit Daemon" marked as failed Expected results: "Enable Auditing for Processes Which Start Prior to the Audit Daemon" passes Additional info: I don't know if this is a recent behavior change for grubby but the man page on a RHEL 7.5 Beta system shows the following defaults for grub2 config files. These defaults are listed in the table below. ┌────────────────┬────────────┬─────────────────────────────────┐ │ Arch │ Bootloader │ Configuration File │ ├────────────────┼────────────┼─────────────────────────────────┤ │ x86_64 [BIOS] │ grub2 │ /boot/grub2/grub.cfg │ ├────────────────┼────────────┼─────────────────────────────────┤ │ x86_64 [UEFI] │ grub2 │ /boot/efi/EFI/redhat/grub.cfg │ The description and warnings (edit /etc/default/grub and rebuild grub.cfg with grub-mkconfig ) match the OVAL expectations, but not what the remediations do.