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.
Bug 1547642 - OVAL check for content_rule_bootloader_audit_argument uses wrong file
Summary: OVAL check for content_rule_bootloader_audit_argument uses wrong file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: scap-security-guide
Version: 7.5
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Vojtech Polasek
QA Contact: Gabriel Gaspar Becker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-21 16:32 UTC by Matt Micene
Modified: 2020-11-14 07:30 UTC (History)
5 users (show)

Fixed In Version: scap-security-guide-0.1.49-1.el7
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-29 19:52:12 UTC
Target Upstream Version:
Embargoed:
lcervako: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:3909 0 None None None 2020-09-29 19:52:34 UTC

Description Matt Micene 2018-02-21 16:32:51 UTC
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.

Comment 2 Matěj Týč 2018-11-29 14:48:50 UTC
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

Comment 5 Vojtech Polasek 2019-08-26 08:04:10 UTC
I will fix this.

Comment 6 Watson Yuuma Sato 2019-09-16 12:43:47 UTC
https://github.com/ComplianceAsCode/content/pull/4786

Comment 11 Gabriel Gaspar Becker 2020-03-31 14:11:59 UTC
Verified for: scap-security-guide-0.1.49-1.el7.noarch

Comment 13 errata-xmlrpc 2020-09-29 19:52:12 UTC
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


Note You need to log in before you can comment on or make changes to this bug.