libreport version: 2.0.8 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.2.7-1.fc16.x86_64 reason: SELinux is preventing /usr/bin/qemu-kvm from 'open' accesses on the None bootcd.iso. time: ven. 02 mars 2012 21:16:43 CET description: :SELinux is preventing /usr/bin/qemu-kvm from 'open' accesses on the None bootcd.iso. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that qemu-kvm should be allowed open access on the bootcd.iso <Inconnu> 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-kvm /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:s(removed)_t:s0:c183,c650 :Target Context system_u:object_r:cifs_t:s0 :Target Objects bootcd.iso [ None ] :Source qemu-kvm :Source Path /usr/bin/qemu-kvm :Port <Inconnu> :Host (removed) :Source RPM Packages qemu-system-x86-0.15.1-4.fc16.x86_64 :Target RPM Packages :Policy RPM selinux-policy-3.10.0-75.fc16.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.2.7-1.fc16.x86_64 #1 SMP Tue Feb 21 : 01:40:47 UTC 2012 x86_64 x86_64 :Alert Count 2 :First Seen ven. 02 mars 2012 20:09:14 CET :Last Seen ven. 02 mars 2012 20:09:14 CET :Local ID 5767af12-5bf6-46e4-8e7f-fa6d785bd004 : :Raw Audit Messages :type=AVC msg=audit(1330715354.748:1533): avc: denied { open } for pid=3028 comm="qemu-kvm" name="bootcd.iso" dev=cifs ino=45317471250808295 scontext=system_u:system_r:s(removed)_t:s0:c183,c650 tcontext=system_u:object_r:cifs_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1330715354.748:1533): arch=c000003e syscall=2 success=no exit=-13 a0=7f58b7c3a330 a1=81000 a2=0 a3=48 items=0 ppid=1 pid=3028 auid=4294967295 uid=107 gid=107 euid=107 suid=107 fsuid=107 egid=107 sgid=107 fsgid=107 tty=(none) ses=4294967295 comm="qemu-kvm" exe="/usr/bin/qemu-kvm" subj=system_u:system_r:s(removed)_t:s0:c183,c650 key=(null) : : :Hash: qemu-kvm,s(removed)_t,cifs_t,None,open : :audit2allow : : :audit2allow -R : :
You will need to turn on the virt_use_samba boolean $ setsebool -P virt_use_samba 1
Thanks for the feedback. Why is this disabled by default ? I didn't find an answer in the available documentation.
Because it allows a virtual machine to read any data on your system that is being shared via samba. Most people to not share their hosts samba data with their virtual machines.