Bug 1044720 - SELinux is preventing /usr/bin/qemu-system-ppc64 from 'read' accesses on the lnk_file /etc/pki/libvirt-spice/ca-cert.pem.
Summary: SELinux is preventing /usr/bin/qemu-system-ppc64 from 'read' accesses on the ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:561f667861f1771dbc5f9dd3dbe...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-18 21:16 UTC by Cole Robinson
Modified: 2014-08-22 13:30 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-22 13:30:25 UTC
Type: ---


Attachments (Terms of Use)

Description Cole Robinson 2013-12-18 21:16:09 UTC
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

Comment 1 Daniel Walsh 2013-12-19 20:29:06 UTC
1707ae5d67632014c7b565610c8127c44e60dd35 fixes this in git.

Please back port to RHEL 7 also.


Note You need to log in before you can comment on or make changes to this bug.