Hide Forgot
libreport version: 2.0.8 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.1.0-7.fc16.x86_64 reason: SELinux is preventing /usr/bin/python from 'search' accesses on the None /var/lib/libvirt/images. time: Thu 16 Feb 2012 05:27:27 PM CST description: :SELinux is preventing /usr/bin/python from 'search' accesses on the None /var/lib/libvirt/images. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that python should be allowed search access on the images <Unknown> 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 xend /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:xend_t:s0 :Target Context system_u:object_r:virt_image_t:s0 :Target Objects /var/lib/libvirt/images [ None ] :Source xend :Source Path /usr/bin/python :Port <Unknown> :Host (removed) :Source RPM Packages python-2.7.2-5.2.fc16.x86_64 :Target RPM Packages libvirt-0.9.6-4.fc16.x86_64 :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.1.0-7.fc16.x86_64 #1 SMP : Tue Nov 1 21:10:48 UTC 2011 x86_64 x86_64 :Alert Count 1 :First Seen Thu 16 Feb 2012 05:26:41 PM CST :Last Seen Thu 16 Feb 2012 05:26:41 PM CST :Local ID f00c04b9-3d30-45f7-846f-bb3b94152593 : :Raw Audit Messages :type=AVC msg=audit(1329375401.997:218): avc: denied { search } for pid=10152 comm="xend" name="images" dev=sda8 ino=263298 scontext=system_u:system_r:xend_t:s0 tcontext=system_u:object_r:virt_image_t:s0 tclass=dirnode=(removed) type=SYSCALL msg=audit(1329375401.997:218): arch=c000003e syscall=4 success=no exit=-13 a0=7fd644007720 a1=7fd6617f6640 a2=7fd6617f6640 a3=20 items=0 ppid=1 pid=10152 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="xend" exe="/usr/bin/python" subj=system_u:system_r:xend_t:s0 key=(null) : : :Hash: xend,xend_t,virt_image_t,None,search : :audit2allow : : :audit2allow -R : :
It looks like you have xen images located in /var/lib/libvirt/images?
I don't see why we would block this.
(In reply to comment #1) > It looks like you have xen images located in /var/lib/libvirt/images? Yes, I had a xen image file there. I had the same problem with xen images stored on other ext3/ext4 disk partitions mounted via fstab. The python script works with SELinux disabled.
It has been added to f16.