| Summary: | SELinux is preventing /usr/bin/qemu-system-ppc64 from 'read' accesses on the lnk_file /etc/pki/libvirt-spice/ca-cert.pem. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Cole Robinson <crobinso> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:561f667861f1771dbc5f9dd3dbe484680ce0610d75dcc3204663f1061a779aab | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-08-22 13:30:25 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
1707ae5d67632014c7b565610c8127c44e60dd35 fixes this in git. Please back port to RHEL 7 also. |
Description of problem: Start a qemu-system-ppc64 guest with spice. I have TLS spice ticketing enabled on this machine. Since x86 guests don't complain, I assume there's already an selinux rule for them that allows this read access, but it should be extended to all qemu-system-* binaries since spice theoretically works for all of them. SELinux is preventing /usr/bin/qemu-system-ppc64 from 'read' accesses on the lnk_file /etc/pki/libvirt-spice/ca-cert.pem. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that qemu-system-ppc64 should be allowed read access on the ca-cert.pem lnk_file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep qemu-system-ppc /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:svirt_tcg_t:s0:c184,c609 Target Context unconfined_u:object_r:cert_t:s0 Target Objects /etc/pki/libvirt-spice/ca-cert.pem [ lnk_file ] Source qemu-system-ppc Source Path /usr/bin/qemu-system-ppc64 Port <Unknown> Host (removed) Source RPM Packages qemu-system-ppc-1.6.1-2.fc20.x86_64 Target RPM Packages Policy RPM selinux-policy-3.12.1-106.fc20.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 3.11.10-301.fc20.x86_64 #1 SMP Thu Dec 5 09:36:10 EST 2013 x86_64 x86_64 Alert Count 1 First Seen 2013-12-18 16:10:02 EST Last Seen 2013-12-18 16:10:02 EST Local ID bdbbce4f-96dd-46b1-8f8d-83e13612972f Raw Audit Messages type=AVC msg=audit(1387401002.501:3973): avc: denied { read } for pid=3449 comm="qemu-system-ppc" name="ca-cert.pem" dev="sda2" ino=917506 scontext=system_u:system_r:svirt_tcg_t:s0:c184,c609 tcontext=unconfined_u:object_r:cert_t:s0 tclass=lnk_file type=SYSCALL msg=audit(1387401002.501:3973): arch=x86_64 syscall=open success=yes exit=EFAULT a0=7f27a45d6200 a1=0 a2=1b6 a3=1 items=0 ppid=1 pid=3449 auid=4294967295 uid=107 gid=107 euid=107 suid=107 fsuid=107 egid=107 sgid=107 fsgid=107 ses=4294967295 tty=(none) comm=qemu-system-ppc exe=/usr/bin/qemu-system-ppc64 subj=system_u:system_r:svirt_tcg_t:s0:c184,c609 key=(null) Hash: qemu-system-ppc,svirt_tcg_t,cert_t,lnk_file,read Additional info: reporter: libreport-2.1.9 hashmarkername: setroubleshoot kernel: 3.11.10-301.fc20.x86_64 type: libreport