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 1781606 - Remediation of rule rsyslog_files_permissions produces error result
Summary: Remediation of rule rsyslog_files_permissions produces error result
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: scap-security-guide
Version: 8.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.2
Assignee: Watson Yuuma Sato
QA Contact: Matus Marhefka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-10 10:18 UTC by Matus Marhefka
Modified: 2023-12-15 17:03 UTC (History)
4 users (show)

Fixed In Version: scap-security-guide-0.1.50-6.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 02:29:53 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4626 0 None None None 2020-11-04 02:30:13 UTC

Description Matus Marhefka 2019-12-10 10:18:55 UTC
Description of problem:
When remediating rule rsyslog_files_permissions (part of PCI-DSS profile) an error is produced:

Fix execution completed and returned: 0

/usr/bin/stat: cannot stat '/var/lib/rsyslog")': No such file or directory
/tmp/oscap.il14hg/fix-XXjoN7jO: line 48: [: : integer expression expected
/usr/bin/stat: cannot stat '/etc/rsyslog.d/*.conf"': No such file or directory
/tmp/oscap.il14hg/fix-XXjoN7jO: line 48: [: : integer expression expected
/usr/bin/stat: cannot stat '/var/log/cron': No such file or directory
/tmp/oscap.il14hg/fix-XXjoN7jO: line 48: [: : integer expression expected
/usr/bin/stat: cannot stat '/var/log/boot.log': No such file or directory
/tmp/oscap.il14hg/fix-XXjoN7jO: line 48: [: : integer expression expected

Failed to verify applied fix: Checking engine returns: fail


Also rules rsyslog_files_ownership and rsyslog_files_groupownership have OVAL definitions and tests, but they are missing remediations. This needs to be investigated.


Version-Release number of selected component (if applicable):
scap-security-guide-0.1.47-2.el8.noarch
scap-security-guide-0.1.48-1.git7e4b9fb.el8.noarch


How reproducible:
always


Steps to Reproduce:
Perform installation of RHEL 8 machine using oscap-anaconda-addon and PCI-DSS profile from the specified RPM packages, or remediate machine directly using `oscap xccdf eval --remediate --profile xccdf_org.ssgproject.content_profile_pci-dss --results-arf arf_results.xml --report pci-dss.html /usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml`.


Actual results:
Remediation of rule rsyslog_files_permissions produces error result.


Expected results:
Remediation of rule rsyslog_files_permissions produces fixed result.

Comment 1 Gabriel Gaspar Becker 2019-12-10 13:55:16 UTC
Actually the remediation seems to be fixed by https://github.com/ComplianceAsCode/content/pull/4906

But, the OVAL is still defective which causes the rule to fail after remediating it. This upstream PR aims to address the issue with the OVAL but is not merged yet: https://github.com/ComplianceAsCode/content/pull/4379

Comment 4 Watson Yuuma Sato 2020-05-20 14:56:15 UTC
OVAL and Remediation are fixed in: https://github.com/ComplianceAsCode/content/pull/5763

Comment 12 errata-xmlrpc 2020-11-04 02:29:53 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:4626


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