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 1620257

Summary: Ping failed between guests over OVS-dpdk tunnel when Selinux=Enforcing
Product: Red Hat Enterprise Linux 7 Reporter: Jean-Tsung Hsiao <jhsiao>
Component: openvswitch-selinux-extra-policyAssignee: Aaron Conole <aconole>
Status: CLOSED ERRATA QA Contact: Jean-Tsung Hsiao <jhsiao>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.6CC: aconole, atelang, ctrautma, jherrman, jhsiao, kfida, kzhang, lmanasko, qding, ralongi, tredaelli
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openvswitch-selinux-extra-policy-1.0-7.el7fdp Doc Type: Bug Fix
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-20 17:37:11 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:
Attachments:
Description Flags
new selinux policy none

Description Jean-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:

Comment 3 Jean-Tsung Hsiao 2018-08-28 14:12:32 UTC
Hi Aaron,

The AVC listed in the description was the one that I identified during the testing.

Thanks!
Jean

Comment 4 Aaron Conole 2018-08-28 14:40:04 UTC
Created attachment 1479284 [details]
new selinux policy

Comment 5 Jean-Tsung Hsiao 2018-08-28 15:21:41 UTC
(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.

Comment 6 Jean-Tsung Hsiao 2018-08-28 16:06:19 UTC
(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.

Comment 7 Jean-Tsung Hsiao 2018-08-30 04:01:22 UTC
Below is the second test build that I have tested. It passed Selinux test and netperf test with Selinux=Enforcing.

http://download.eng.bos.redhat.com/brewroot/work/tasks/6712/18076712/openvswitch-selinux-extra-policy-1.0-7.el7fdp.noarch.rpm

Comment 9 Jean-Tsung Hsiao 2018-09-11 11:57:26 UTC
Hi Aaron,

Need an equivalent build for Rhel-8.

Thanks!

Jean

Comment 10 Jean-Tsung Hsiao 2018-09-12 02:43:31 UTC
The package has been verified using openvswitch2.10-2.10.0-1.el7fdp under Rhel7.6.

Comment 14 errata-xmlrpc 2018-09-20 17:37:11 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-2018:2734