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.

Bug 1634100

Summary: [RFE] Improve the rpm spec file of insights-client package.
Product: Red Hat Enterprise Linux 7 Reporter: Rudnei Bertol Jr. <rbertolj>
Component: insights-clientAssignee: Christian Marineau <cmarinea>
Status: CLOSED DUPLICATE QA Contact: Jeff Needle <jneedle>
Severity: high Docs Contact:
Priority: high    
Version: 7.6CC: alng, cmarinea, dajohnso, gchamoul, jnewton, klape, link, lphiri, pakotvan, rbertolj, rmullett, robwilli, shughes, stomsa
Target Milestone: rcKeywords: FutureFeature, Reopened, ZStream
Target Release: 7.6Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1730800 1735882 (view as bug list) Environment:
Last Closed: 2022-04-13 07:34:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1730800, 1735882, 1735910    

Description Rudnei Bertol Jr. 2018-09-28 18:27:54 UTC
1. Proposed title of this feature request
    Improve the rpm spec file of insights-client package.

2. Who is the customer behind the request?

Account: Verizon 708443
TAM customer: no
CSM customer: no
Strategic: yes

3. What is the nature and description of the request?
   When the customer executes OScap scan it is finished with an error below.
```
oscap xccdf eval --fetch-remote-resources --rule xccdf_org.ssgproject.content_rule_rpm_verify_permissions --remediate --profile xccdf_org.ssgproject.content_profile_standard /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml
Downloading: https://www.redhat.com/security/data/oval/com.redhat.rhsa-RHEL7.xml.bz2 ... ok
Title   Verify and Correct File Permissions with RPM
Rule    xccdf_org.ssgproject.content_rule_rpm_verify_permissions
Ident   CCE-27209-6
Result  fail

 --- Starting Remediation ---
Downloading: https://www.redhat.com/security/data/oval/com.redhat.rhsa-RHEL7.xml.bz2 ... ok
Title   Verify and Correct File Permissions with RPM
Rule    xccdf_org.ssgproject.content_rule_rpm_verify_permissions
Ident   CCE-27209-6
Result  error 
```

4. Why does the customer need this? (List the business requirements here)
    To OScap scan works smoothly in servers that have Red Hat Insight client package installed.

5. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.
We can check running the oscap command to check the issue.

`oscap xccdf eval --fetch-remote-resources --rule xccdf_org.ssgproject.content_rule_rpm_verify_permissions --remediate --profile xccdf_org.ssgproject.content_profile_standard /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml`

6. Is there already an existing RFE upstream or in Red Hat Bugzilla?
   No

7. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?
   The tests were executed in RHEL7.

8. Is the sales team involved in this request and do they have any additional input?
    No

9. List any affected packages or components.
    insights-client

10. Would the customer be able to assist in testing this functionality if implemented?
     The customer could, but it is reproducible anywhere openscap is executed.

Comment 2 Kyle Lape 2018-10-01 15:43:18 UTC

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

Comment 3 Marcelo Moreira de Mello 2018-10-16 20:51:54 UTC
Hello team, 

  This issue is not duplicated as the one reported in #1570867. 

  This problem is happening due whenever Insights runs, new files are created on-demand which are also tracked by the SPEC file, thus it creates a false-positive for the "rpm -V" command output which is the base used by the OpenSCAP command to filter bad permission files. 

   I'm reopening this bug. 

 mmello

Comment 6 jcrafts 2019-07-16 14:35:26 UTC
*** Bug 1723988 has been marked as a duplicate of this bug. ***

Comment 7 jcrafts 2019-07-16 14:35:51 UTC
*** Bug 1700999 has been marked as a duplicate of this bug. ***