Description of problem: I was trying to open file from CD/DVD drive on domU Additional info: libreport version: 2.0.18 kernel: 3.6.9-2.fc17.x86_64 description: :SELinux is preventing /usr/lib/xen/bin/qemu-dm from 'open' accesses on the blk_file /dev/sr0. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that qemu-dm should be allowed open access on the sr0 blk_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-dm /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:removable_device_t:s0 :Target Objects /dev/sr0 [ blk_file ] :Source qemu-dm :Source Path /usr/lib/xen/bin/qemu-dm :Port <Inconnu> :Host (removed) :Source RPM Packages xen-runtime-4.1.3-6.fc17.x86_64 :Target RPM Packages :Policy RPM selinux-policy-3.10.0-161.fc17.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.6.9-2.fc17.x86_64 #1 SMP Tue Dec : 4 13:26:04 UTC 2012 x86_64 x86_64 :Alert Count 1 :First Seen 2012-12-07 21:05:01 RET :Last Seen 2012-12-07 21:05:01 RET :Local ID 4f306cb8-cc15-4540-b06c-6b6f381fb687 : :Raw Audit Messages :type=AVC msg=audit(1354899901.806:211): avc: denied { open } for pid=22373 comm="qemu-dm" path="/dev/sr0" dev="devtmpfs" ino=6003 scontext=system_u:system_r:xend_t:s0 tcontext=system_u:object_r:removable_device_t:s0 tclass=blk_file : : :type=SYSCALL msg=audit(1354899901.806:211): arch=x86_64 syscall=open success=no exit=EACCES a0=2a7e510 a1=4000 a2=1a4 a3=30 items=0 ppid=885 pid=22373 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=qemu-dm exe=/usr/lib/xen/bin/qemu-dm subj=system_u:system_r:xend_t:s0 key=(null) : :Hash: qemu-dm,xend_t,removable_device_t,blk_file,open : :audit2allow : :#============= xend_t ============== :allow xend_t removable_device_t:blk_file open; : :audit2allow -R : :#============= xend_t ============== :allow xend_t removable_device_t:blk_file open; :
Created attachment 659511 [details] File: type
Created attachment 659512 [details] File: hashmarkername
*** Bug 885183 has been marked as a duplicate of this bug. ***
Added. commit 01e1b504b69f12f4792f6ee720162acc3a785015 Author: Miroslav Grepl <mgrepl> Date: Mon Dec 10 08:39:00 2012 +0100 Allow open file from CD/DVD drive on domU
selinux-policy-3.10.0-165.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-165.fc17
Package selinux-policy-3.10.0-165.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-165.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-165.fc17 then log in and leave karma (feedback).
Package selinux-policy-3.10.0-166.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-166.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17 then log in and leave karma (feedback).
selinux-policy-3.10.0-166.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.