Bug 883631 - SELinux is preventing /usr/bin/qemu-kvm from 'open' accesses on the file /run/media/carlos/BackUp/Windows 7 Ultimate x64/Windows 7 Ultimate x64.iso.
Summary: SELinux is preventing /usr/bin/qemu-kvm from 'open' accesses on the file /run...
Keywords:
Status: CLOSED DUPLICATE of bug 810422
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7ccb9064a5a7f1fa9b86fd51a16...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-05 02:45 UTC by Carlos Soriano
Modified: 2012-12-05 09:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-05 09:38:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Carlos Soriano 2012-12-05 02:45:12 UTC
Description of problem:
Creating a virtual image with gnome-boxes
Qemu wants to acces to some thing and it can't.
SELinux is preventing /usr/bin/qemu-kvm from 'open' accesses on the file /run/media/carlos/BackUp/Windows 7 Ultimate x64/Windows 7 Ultimate x64.iso.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that qemu-kvm should be allowed open access on the Windows 7 Ultimate x64.iso 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-kvm /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:svirt_t:s0:c387,c391
Target Context                system_u:object_r:fusefs_t:s0
Target Objects                /run/media/carlos/BackUp/Windows 7 Ultimate
                              x64/Windows 7 Ultimate x64.iso [ file ]
Source                        qemu-kvm
Source Path                   /usr/bin/qemu-kvm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           qemu-system-x86-1.2.0-24.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-59.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.6.7-5.fc18.x86_64 #1 SMP Tue Nov
                              20 19:40:08 UTC 2012 x86_64 x86_64
Alert Count                   2
First Seen                    2012-12-05 03:41:18 CET
Last Seen                     2012-12-05 03:41:18 CET
Local ID                      ee53a803-1a33-4aca-badb-2e7d7005a425

Raw Audit Messages
type=AVC msg=audit(1354675278.188:502): avc:  denied  { open } for  pid=12048 comm="qemu-kvm" path=2F72756E2F6D656469612F6361726C6F732F4261636B55702F57696E646F7773203720556C74696D617465207836342F57696E646F7773203720556C74696D617465207836342E69736F dev="sdb1" ino=4042 scontext=unconfined_u:system_r:svirt_t:s0:c387,c391 tcontext=system_u:object_r:fusefs_t:s0 tclass=file


type=SYSCALL msg=audit(1354675278.188:502): arch=x86_64 syscall=open success=no exit=EACCES a0=7fdade897f00 a1=80000 a2=0 a3=48 items=0 ppid=1 pid=12048 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=qemu-kvm exe=/usr/bin/qemu-kvm subj=unconfined_u:system_r:svirt_t:s0:c387,c391 key=(null)

Hash: qemu-kvm,svirt_t,fusefs_t,file,open

audit2allow
audit2allow -R

Additional info:
hashmarkername: setroubleshoot
kernel:         3.6.7-5.fc18.x86_64
type:           libreport

Potential duplicate: bug 810422

Comment 1 Miroslav Grepl 2012-12-05 09:38:08 UTC

*** This bug has been marked as a duplicate of bug 810422 ***


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