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.
Description of problem:
-----------------------
When triggering the statedump of gfapi application(QEMU), avc denial logged in audit.log and statedump is not dumped in to /var/run/gluster
Version-Release number of selected component (if applicable):
-------------------------------------------------------------
RHEL 7.3 ( 3.10.0-514.16.1.el7.x86_64 )
libselinux-utils-2.5-6.el7.x86_64
selinux-policy-3.13.1-102.el7_3.16.noarch
libselinux-2.5-6.el7.x86_64
libselinux-python-2.5-6.el7.x86_64
selinux-policy-targeted-3.13.1-102.el7_3.16.noarch
RHGS 3.3.0 interim build ( glusterfs-3.8.4-25.el7rhgs )
How reproducible:
------------------
Always
Steps to Reproduce:
-------------------
1. Create a QEMU process that uses QEMU driver for glusterfs (libgfapi)
2. Trigger gfapi application statedump from gluster node
Actual results:
---------------
No gfapi statedump under /var/run/gluster and AVC denial message logged in audit.log
Expected results:
-----------------
gfapi application should dump the statedump under /var/run/gluster
Additional info:
----------------
Snip from audit.log
<snip>
type=AVC msg=audit(1495796194.193:981): avc: denied { write } for pid=14873 comm="qemu-kvm" name="gluster" dev="tmpfs" ino=109984 scontext=system_u:system_r:svirt_t:s0:c399,c698 tcontext=system_u:object_r:glusterd_var_run_t:s0 tclass=dir
</snip>
Tested with RHEL 7.4 and still the issue persists
List of rpms along with its version in RHEL 7.4 Beta setup:
kernel-tools-3.10.0-671.el7.x86_64
kernel-tools-libs-3.10.0-671.el7.x86_64
kernel-3.10.0-671.el7.x86_64
selinux-policy-targeted-3.13.1-152.el7.noarch
libselinux-utils-2.5-11.el7.x86_64
libselinux-2.5-11.el7.x86_64
libselinux-python-2.5-11.el7.x86_64
selinux-policy-3.13.1-152.el7.noarch
glusterfs-libs-3.8.4-25.el7.x86_64
glusterfs-client-xlators-3.8.4-25.el7.x86_64
glusterfs-fuse-3.8.4-25.el7.x86_64
glusterfs-3.8.4-25.el7.x86_64
libvirt-daemon-driver-qemu-3.2.0-6.el7.x86_64
qemu-kvm-common-1.5.3-139.el7.x86_64
qemu-kvm-1.5.3-139.el7.x86_64
ipxe-roms-qemu-20170123-1.git4e85b27.el7.noarch
qemu-img-1.5.3-139.el7.x86_64
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-2017:1861
Description of problem: ----------------------- When triggering the statedump of gfapi application(QEMU), avc denial logged in audit.log and statedump is not dumped in to /var/run/gluster Version-Release number of selected component (if applicable): ------------------------------------------------------------- RHEL 7.3 ( 3.10.0-514.16.1.el7.x86_64 ) libselinux-utils-2.5-6.el7.x86_64 selinux-policy-3.13.1-102.el7_3.16.noarch libselinux-2.5-6.el7.x86_64 libselinux-python-2.5-6.el7.x86_64 selinux-policy-targeted-3.13.1-102.el7_3.16.noarch RHGS 3.3.0 interim build ( glusterfs-3.8.4-25.el7rhgs ) How reproducible: ------------------ Always Steps to Reproduce: ------------------- 1. Create a QEMU process that uses QEMU driver for glusterfs (libgfapi) 2. Trigger gfapi application statedump from gluster node Actual results: --------------- No gfapi statedump under /var/run/gluster and AVC denial message logged in audit.log Expected results: ----------------- gfapi application should dump the statedump under /var/run/gluster Additional info: ---------------- Snip from audit.log <snip> type=AVC msg=audit(1495796194.193:981): avc: denied { write } for pid=14873 comm="qemu-kvm" name="gluster" dev="tmpfs" ino=109984 scontext=system_u:system_r:svirt_t:s0:c399,c698 tcontext=system_u:object_r:glusterd_var_run_t:s0 tclass=dir </snip>