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 1662180 - xccdf_org.ssgproject.content_rule_rpm_verify_permissions fails after applying remediation scripts.
Summary: xccdf_org.ssgproject.content_rule_rpm_verify_permissions fails after applying...
Keywords:
Status: CLOSED DUPLICATE of bug 1686005
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: scap-security-guide
Version: 7.6
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Watson Yuuma Sato
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-26 19:27 UTC by Jaskaran Singh Narula
Modified: 2019-05-07 10:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-07 10:51:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jaskaran Singh Narula 2018-12-26 19:27:02 UTC
Description of problem:
After scanning the system, the rule is still failing. 

Rule: xccdf_org.ssgproject.content_rule_rpm_verify_permissions

Version-Release number of selected component (if applicable):


How reproducible:
Fully reproducible. 

Steps to Reproduce:
1. Scap any RHEL 7.6 system with DISA STIG RHEL 7 
2. Apply the remediation script. 
3. Again scan the system and check the result. 

Actual results:
Title   Verify and Correct File Permissions with RPM
Rule    xccdf_org.ssgproject.content_rule_rpm_verify_permissions
Ident   CCE-27209-6
Result  fail

Expected results:
Title   Verify and Correct File Permissions with RPM
Rule    xccdf_org.ssgproject.content_rule_rpm_verify_permissions
Ident   CCE-27209-6
Result  pass

Additional info:

Comment 2 Watson Yuuma Sato 2019-01-07 16:50:08 UTC
Hello Jaskaran,

I have tried described reproducer in a fresh installed VM, but the rule is passing on scan after remediation.
Tried both, remediating as the scan goes, with "--remediate" flag;
and also with multi-step approach of scanning and generating fix script with "oscap generate fix", and then running it.

During both approaches the second scan resulted in pass for rule rpm_verify_permissions.

I have a few questions:
- Does the reproducer work on a freshly installed machine for you?
- Is there any extra rpm installed in this machine?

Thanks

Comment 3 Watson Yuuma Sato 2019-03-19 17:27:23 UTC
Hello Jaskaran,

We just noticed that remediation for this rule was not working due to option "--quiet".
As a workaround: following command will fix the Data Stream.

sed -i 's/--quiet --setperms/--setperms/' ./ssg-rhel7-ds.xml

I kindly ask if you could test it on the reproducer environment.

Thank you.

Comment 6 Watson Yuuma Sato 2019-05-07 10:51:42 UTC
This is a different manifestation of the same bug https://bugzilla.redhat.com/show_bug.cgi?id=1686005.
This is fixed by the same patch.

*** This bug has been marked as a duplicate of bug 1686005 ***


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