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 1663092

Summary: qemu-ga command guest-get-fsinfo isn't allowed read access
Product: Red Hat Enterprise Linux 7 Reporter: Marc-Andre Lureau <marcandre.lureau>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: high Docs Contact:
Priority: high    
Version: 7.7CC: lvrabec, mmalik, mtessun, plautrba, ssekidde, vmojzis, xfu, zpytela
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1635571
: 1687721 (view as bug list) Environment:
Last Closed: 2019-08-06 12:52:54 UTC Type: ---
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: 1635571, 1636178, 1687721    

Description Marc-Andre Lureau 2019-01-03 06:28:05 UTC
+++ This bug was initially created as a clone of Bug #1635571 +++

Bug 1635571 needs SELinux policy update:


# sealert -l 441edee4-6c7b-447b-be45-8b03e932994a
SELinux is preventing /usr/bin/qemu-ga from read access on the file b252:1.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that qemu-ga should be allowed read access on the b252:1 file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'qemu-ga' --raw | audit2allow -M my-qemuga
# semodule -i my-qemuga.pp


Additional Information:
Source Context                system_u:system_r:virt_qemu_ga_t:s0
Target Context                system_u:object_r:udev_var_run_t:s0
Target Objects                b252:1 [ file ]
Source                        qemu-ga
Source Path                   /usr/bin/qemu-ga
Port                          <Unknown>
Host                          localhost.localdomain
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-228.el7.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     vm-74-84.lab.eng.pek2.redhat.com
Platform                      Linux vm-74-84.lab.eng.pek2.redhat.com
                              3.10.0-954.el7.x86_64 #1 SMP Mon Sep 24 16:18:49
                              EDT 2018 x86_64 x86_64
Alert Count                   8
First Seen                    2019-01-02 18:18:44 CST
Last Seen                     2019-01-02 18:54:27 CST
Local ID                      441edee4-6c7b-447b-be45-8b03e932994a

Raw Audit Messages
type=AVC msg=audit(1546426467.133:224): avc:  denied  { read } for  pid=2894 comm="qemu-ga" name="b252:1" dev="tmpfs" ino=20899 scontext=system_u:system_r:virt_qemu_ga_t:s0 tcontext=system_u:object_r:udev_var_run_t:s0 tclass=file permissive=0


Hash: qemu-ga,virt_qemu_ga_t,udev_var_run_t,file,read

Comment 2 Marc-Andre Lureau 2019-01-04 08:17:11 UTC
*** Bug 1663109 has been marked as a duplicate of this bug. ***

Comment 17 errata-xmlrpc 2019-08-06 12:52:54 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, 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-2019:2127