Hide Forgot
SELinux is preventing /usr/bin/python from 'read' accesses on the file base-image-53401159-6ffe-4871-9480-4880d4ef1328.dsk. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that python should be allowed read access on the base-image-53401159-6ffe-4871-9480-4880d4ef1328.dsk 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 imgfac.py /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:initrc_t:s0 Target Context system_u:object_r:svirt_image_t:s0:c627,c666 Target Objects base- image-53401159-6ffe-4871-9480-4880d4ef1328.dsk [ file ] Source imgfac.py Source Path /usr/bin/python Port <Unknown> Host (removed) Source RPM Packages python-2.7-8.fc14.1 Target RPM Packages Policy RPM selinux-policy-3.9.7-37.fc14 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.35.12-88.fc14.x86_64 #1 SMP Thu Mar 31 21:21:57 UTC 2011 x86_64 x86_64 Alert Count 1 First Seen Tue 12 Apr 2011 04:00:03 PM CEST Last Seen Tue 12 Apr 2011 04:00:03 PM CEST Local ID 6b281cd1-31f8-40c6-9519-7ad9e9a9e089 Raw Audit Messages type=AVC msg=audit(1302616803.876:100407): avc: denied { read } for pid=5379 comm="imgfac.py" name="base-image-53401159-6ffe-4871-9480-4880d4ef1328.dsk" dev=dm-1 ino=7064 scontext=system_u:system_r:initrc_t:s0 tcontext=system_u:object_r:svirt_image_t:s0:c627,c666 tclass=file type=SYSCALL msg=audit(1302616803.876:100407): arch=x86_64 syscall=open success=no exit=EACCES a0=7fb25008b8dc a1=0 a2=d a3=7fb26b19b050 items=0 ppid=1 pid=5379 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=imgfac.py exe=/usr/bin/python subj=system_u:system_r:initrc_t:s0 key=(null) Hash: imgfac.py,initrc_t,svirt_image_t,file,read audit2allow #============= initrc_t ============== #!!!! This avc is a constraint violation. You will need to add an attribute to either the source or target type to make it work. #Contraint rule: allow initrc_t svirt_image_t:file read; audit2allow -R #============= initrc_t ============== #!!!! This avc is a constraint violation. You will need to add an attribute to either the source or target type to make it work. #Contraint rule: allow initrc_t svirt_image_t:file read;
Label it virtd_exec_t should solve this problem.
Yes, I believe it should.