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 1542673

Summary: Starting vhostuser guest in server mode encountered three AVC's
Product: Red Hat Enterprise Linux 7 Reporter: Jean-Tsung Hsiao <jhsiao>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: high Docs Contact:
Priority: high    
Version: 7.5CC: ctrautma, jhsiao, kzhang, lvrabec, mgrepl, mmalik, plautrba, rcain, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-07 09:09:15 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:

Description Jean-Tsung Hsiao 2018-02-06 19:22:23 UTC
Description of problem: Starting vhostuser guest in server mode encountered three AVC's 

type=AVC msg=audit(1517943095.585:1111): avc:  denied  { write } for  pid=5539 comm="virtlogd" path="/run/systemd/inhibit/7.ref" dev="tmpfs" ino=83866 scontext=system_u:system_r:virtlogd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:systemd_logind_inhibit_var_run_t:s0 tclass=fifo_file
type=AVC msg=audit(1517943095.831:1121): avc:  denied  { unlink } for  pid=5805 comm="qemu-kvm" name="vhost0" dev="dm-0" ino=5207017 scontext=system_u:system_r:svirt_t:s0:c498,c852 tcontext=system_u:object_r:tmp_t:s0 tclass=sock_file
type=AVC msg=audit(1517943095.831:1122): avc:  denied  { create } for  pid=5805 comm="qemu-kvm" name="vhost0" scontext=system_u:system_r:svirt_t:s0:c498,c852 tcontext=system_u:object_r:tmp_t:s0 tclass=sock_file

Version-Release number of selected component (if applicable):
root@netqe5 jhsiao]# uname -a
Linux netqe5.knqe.lab.eng.bos.redhat.com 3.10.0-843.el7.x86_64 #1 SMP Wed Jan 31 12:09:22 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@netqe5 jhsiao]# rpm -q openvswitch
openvswitch-2.9.0-0.3.20180124git26cdc33.el7fdp.x86_64
[root@netqe5 jhsiao]# rpm -qa | grep selinux
openstack-selinux-0.8.13-1.el7ost.noarch
libselinux-python-2.5-12.el7.x86_64
selinux-policy-targeted-3.13.1-186.el7.noarch
container-selinux-2.41-1.git126c1c0.el7.noarch
selinux-policy-3.13.1-186.el7.noarch
libselinux-2.5-12.el7.x86_64
libselinux-utils-2.5-12.el7.x86_64

How reproducible: Reproducible


Steps to Reproduce:
1. Config a OVS dpdk bridge and add a vhost of type vhostuserclient to it
2. Set Selinux to Permissive or Enforcing
3. Start the guest in server mode
4.

Actual results: Should see those three AVC's.


Expected results:


Additional info:

Comment 2 Lukas Vrabec 2018-02-07 09:09:15 UTC

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