Bug 542769
Summary: | SELinux is preventing /usr/bin/qemu-kvm "read" access on random. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Richard A Lochner <lochner> |
Component: | qemu | Assignee: | Glauber Costa <gcosta> |
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 12 | CC: | berrange, dwalsh, dwmw2, gcosta, itamar, jaswinder, jforbes, markmc, mgrepl, quintela, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | setroubleshoot_trace_hash:89ce998f21b62009f048eaf07f00f9c66c890fe80e84e3b4d8afe1935eef4e1f | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-11-30 19:53:28 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Richard A Lochner
2009-11-30 18:25:01 UTC
This access violation likely happens because qemu is trying to generate a session key for vnc access over tls. Actually, to be precise, the access violation happens when a vnc connection is opened to a virtual machine using tls from a remote system. Any chance of getting qemu to use urand instead of rand? Or is this caused by a library that qemu is calling into? Comment #1 indicates that the reporter has configured VNC to use TLS. We're just using GNUTLS for this in QEMU. GNUTLS uses gcrypt, which allows use of /dev/random or /dev/urandom, but GNUTLS always tells it to use /dev/random for generating keys. Ok, Richard if you want to use this alternative, I think it is better you use a custom policy. You can add these rules for now using # grep random /var/log/audit/audit.log | audit2allow -M mysvirt # semodule -i mysvirt.pp That solves the problem, of course. Obviously, it would be *nice* if this work-around were not needed. The use of vnc over tls is likely a very common set up. But, I understand the issue with the GNUTLS library. Thank you all for your timely responses. |