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 1994718

Summary: Need policy update for rhsmcertd to use new cloud-what implementation
Product: Red Hat Enterprise Linux 8 Reporter: Craig Donnelly <cdonnell>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: urgent Docs Contact:
Priority: high    
Version: 8.5CC: jhnidek, lvrabec, mmalik, ssekidde
Target Milestone: betaKeywords: AutoVerified, Triaged
Target Release: 8.5Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.14.3-79.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2092333 (view as bug list) Environment:
Last Closed: 2021-11-09 19:43:59 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: 1922151    

Description Craig Donnelly 2021-08-17 18:43:28 UTC
Description of problem:
Recently subscription-manager separated out libraries for cloud detection, and we need to update the selinux policy to allow rhsmcertd to utilize the new library's cache.

This is required for a cloud improvement to ship for RHEL 8.5 (blocks 1922151).

Version-Release number of selected component (if applicable):
subscription-manager-1.28.20-1
selinux-policy-3.14.3-76.el8.noarch


Actual results: rhsmcertd cant access /var/cache/cloud-what.

Expected results: Need to be able to access cache file.


Additional info:
A PR was created upstream for this issue by sst subscription-manager team:
https://github.com/fedora-selinux/selinux-policy/pull/836

Comment 1 Zdenek Pytela 2021-08-24 07:31:38 UTC
*** Bug 1996720 has been marked as a duplicate of this bug. ***

Comment 3 Zdenek Pytela 2021-08-24 18:51:53 UTC
The PR is under review.

Comment 4 Zdenek Pytela 2021-08-25 10:34:14 UTC
Commit to backport:
commit d325a2df7b9786b98a510393ed1ad3fd09303327 (HEAD -> rawhide, upstream/rawhide)
Author: Jiri Hnidek <jhnidek>
Date:   Tue Aug 17 18:23:31 2021 +0200

    Allow rhsmcertd to create cache file in /var/cache/cloud-what

Comment 16 errata-xmlrpc 2021-11-09 19:43:59 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 (selinux-policy 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-2021:4420