Bug 791086 - SELinux is preventing /usr/bin/python from 'search' accesses on the None /var/lib/libvirt/images.
Summary: SELinux is preventing /usr/bin/python from 'search' accesses on the None /var...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:623da2abf946ea26c923ac93290...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-16 07:04 UTC by David Hartley
Modified: 2012-03-15 17:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-15 17:10:17 UTC
Type: ---


Attachments (Terms of Use)

Description David Hartley 2012-02-16 07:04:29 UTC
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
:
:

Comment 1 Miroslav Grepl 2012-02-16 10:03:14 UTC
It looks like you have xen images located in /var/lib/libvirt/images?

Comment 2 Daniel Walsh 2012-02-16 15:51:05 UTC
I don't see why we would block this.

Comment 3 David Hartley 2012-02-17 02:54:24 UTC
(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.

Comment 4 Miroslav Grepl 2012-03-15 17:10:17 UTC
It has been added to f16.


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