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.
Previously, attempting to ping a guest virtual machine in some cases failed if the host was using SELinux in enforcing mode. This update enables openvswitch_t to map the svirt_image_t label, which prevents the problem from occurring.
DescriptionJean-Tsung Hsiao
2018-08-22 20:27:25 UTC
Description of problem: Ping failed between guests over OVS-dpdk tunnel when Selinux=Enforcing
When "virsh console <guest>" the following AVC ocurred:
type=AVC msg=audit(1534966872.195:290): avc: denied { map } for pid=39410 comm="ovs-vswitchd" path=2F6465762F6875676570616765732F6C6962766972742F71656D752F332D6D712D7668752D74756E6E656C2F71656D755F6261636B5F6D656D2E5F6F626A656374735F72616D2D6E6F6465302E775A78683135202864656C6574656429 dev="hugetlbfs" ino=1986525 scontext=system_u:system_r:openvswitch_t:s0 tcontext=system_u:object_r:svirt_image_t:s0 tclass=file permissive=0
Version-Release number of selected component (if applicable):
[root@netqe9 jhsiao]# uname -a
Linux netqe9.knqe.lab.eng.bos.redhat.com 3.10.0-933.el7.x86_64 #1 SMP Sat Aug 11 11:32:57 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@netqe9 jhsiao]# rpm -q openvswitch2.10
openvswitch2.10-2.10.0-1.el7fdp.x86_64
[root@netqe9 jhsiao]# rpm -qa | grep selinux
libselinux-python-2.5-14.1.el7.x86_64
selinux-policy-3.13.1-210.el7.noarch
openvswitch-selinux-extra-policy-1.0-6.el7fdp.noarch
libselinux-2.5-14.1.el7.x86_64
selinux-policy-targeted-3.13.1-210.el7.noarch
libselinux-utils-2.5-14.1.el7.x86_64
How reproducible: Reproducible
Steps to Reproduce:
1. Config OVS-dpdk vxlan tunnel with guest
2. Setenforce 1
3. Start the guest and enter it console
Actual results: AVC will show up
Expected results:
Additional info:
(In reply to Aaron Conole from comment #4)
> Created attachment 1479284[details]
> new selinux policy
The test build passed the Selinux=Enforcing test.
Next, will run ping/netperf tests between guests over OVS_dpdk vxlan tunnel.
(In reply to Jean-Tsung Hsiao from comment #5)
> (In reply to Aaron Conole from comment #4)
> > Created attachment 1479284[details]
> > new selinux policy
>
> The test build passed the Selinux=Enforcing test.
>
> Next, will run ping/netperf tests between guests over OVS_dpdk vxlan tunnel.
Both ping and netperf tests passed.
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-2018:2734
Description of problem: Ping failed between guests over OVS-dpdk tunnel when Selinux=Enforcing When "virsh console <guest>" the following AVC ocurred: type=AVC msg=audit(1534966872.195:290): avc: denied { map } for pid=39410 comm="ovs-vswitchd" path=2F6465762F6875676570616765732F6C6962766972742F71656D752F332D6D712D7668752D74756E6E656C2F71656D755F6261636B5F6D656D2E5F6F626A656374735F72616D2D6E6F6465302E775A78683135202864656C6574656429 dev="hugetlbfs" ino=1986525 scontext=system_u:system_r:openvswitch_t:s0 tcontext=system_u:object_r:svirt_image_t:s0 tclass=file permissive=0 Version-Release number of selected component (if applicable): [root@netqe9 jhsiao]# uname -a Linux netqe9.knqe.lab.eng.bos.redhat.com 3.10.0-933.el7.x86_64 #1 SMP Sat Aug 11 11:32:57 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux [root@netqe9 jhsiao]# rpm -q openvswitch2.10 openvswitch2.10-2.10.0-1.el7fdp.x86_64 [root@netqe9 jhsiao]# rpm -qa | grep selinux libselinux-python-2.5-14.1.el7.x86_64 selinux-policy-3.13.1-210.el7.noarch openvswitch-selinux-extra-policy-1.0-6.el7fdp.noarch libselinux-2.5-14.1.el7.x86_64 selinux-policy-targeted-3.13.1-210.el7.noarch libselinux-utils-2.5-14.1.el7.x86_64 How reproducible: Reproducible Steps to Reproduce: 1. Config OVS-dpdk vxlan tunnel with guest 2. Setenforce 1 3. Start the guest and enter it console Actual results: AVC will show up Expected results: Additional info: