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