Bug 831850

Summary: SELinux prevents remote-viewer connection to Virtual machine provisioned by Ovirt Management
Product: [Fedora] Fedora Reporter: Marian Krcmarik <mkrcmari>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 00:29:08 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 Marian Krcmarik 2012-06-13 21:55:56 UTC
Description of problem:
SELinux prevents remote-viewer connection to Virtual machine provisioned by Ovirt Management.
AVC:
type=AVC msg=audit(1339600810.583:314): avc:  denied  { name_connect } for  pid=2546 comm="remote-viewer" dest=5911 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:vnc_port_t:s0 tclass=tcp_socket

Version-Release number of selected component (if applicable):
virt-viewer-0.5.3-1.fc17
spice-xpi-2.7-1.fc17

How reproducible:
Always

Steps to Reproduce:
1. Log in to RHEVM/Ovirt User portal in Firefox (management web frontend of RHEVM/Ovirt - virtualization managers, spice-xpi plugin needs to be installed.
2. Click on Spice console button to connect to any VM provisioned by RHEVM/Ovirt with using remote-viewer client (binary included in virt-viewer package).
  
Actual results:
AVC, SELinux prevents remote-viewer connection.

Expected results:
No AVC, successful cnenction in enforcing mode.

Additional info:
since it's not esay to get setup, I am willing to provide any more info.
WORKAROUND: Switch to permissive mode

Comment 1 Daniel Walsh 2012-06-14 20:16:21 UTC
Looks like we already have a fix for this in, 

Fixed in selinux-policy-3.10.0-130.fc17

Comment 2 Fedora Update System 2012-06-19 07:58:43 UTC
selinux-policy-3.10.0-132.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-132.fc17

Comment 3 Fedora Update System 2012-06-20 00:29:08 UTC
selinux-policy-3.10.0-132.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2012-07-19 09:17:08 UTC
selinux-policy-3.10.0-132.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.