Bug 871300

Summary: SELinux is preventing /usr/bin/qemu-system-x86_64 from 'open' accesses on the file /mnt/36A68AD2A68A91D3/My Virtual PCs/win2000/win2000.vdi.
Product: [Fedora] Fedora Reporter: StefanTudor <stephan.tudor.81>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d124388b1722af68e5d79d0be48a4d47a269500fc85a3b6f2a1d21b4382329b3
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-30 19:07:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description StefanTudor 2012-10-30 07:44:56 UTC
Additional info:
libreport version: 2.0.16
kernel:         3.6.3-1.fc17.x86_64

description:
:SELinux is preventing /usr/bin/qemu-system-x86_64 from 'open' accesses on the file /mnt/36A68AD2A68A91D3/My Virtual PCs/win2000/win2000.vdi.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that qemu-system-x86_64 should be allowed open access on the win2000.vdi 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-system-x86 /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:svirt_t:s0:c581,c823
:Target Context                system_u:object_r:fusefs_t:s0
:Target Objects                /mnt/36A68AD2A68A91D3/My Virtual
:                              PCs/win2000/win2000.vdi [ file ]
:Source                        qemu-system-x86
:Source Path                   /usr/bin/qemu-system-x86_64
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           qemu-system-x86-1.0.1-2.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-156.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.3-1.fc17.x86_64 #1 SMP Mon Oct
:                              22 15:32:35 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-10-30 09:36:39 EET
:Last Seen                     2012-10-30 09:36:39 EET
:Local ID                      8de37a3b-56de-45c5-bd71-ddbcd5204a19
:
:Raw Audit Messages
:type=AVC msg=audit(1351582599.640:271): avc:  denied  { open } for  pid=5170 comm="qemu-system-x86" path=2F6D6E742F333641363841443241363841393144332F4D79205669727475616C205043732F77696E323030302F77696E323030302E766469 dev="sda3" ino=47 scontext=system_u:system_r:svirt_t:s0:c581,c823 tcontext=system_u:object_r:fusefs_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1351582599.640:271): arch=x86_64 syscall=open success=no exit=EACCES a0=7f43a9811a30 a1=81002 a2=0 a3=48 items=0 ppid=1 pid=5170 auid=4294967295 uid=107 gid=107 euid=107 suid=107 fsuid=107 egid=107 sgid=107 fsgid=107 tty=(none) ses=4294967295 comm=qemu-system-x86 exe=/usr/bin/qemu-system-x86_64 subj=system_u:system_r:svirt_t:s0:c581,c823 key=(null)
:
:Hash: qemu-system-x86,svirt_t,fusefs_t,file,open
:
:audit2allow
:
:#============= svirt_t ==============
:#!!!! This avc can be allowed using the boolean 'virt_use_fusefs'
:
:allow svirt_t fusefs_t:file open;
:
:audit2allow -R
:
:#============= svirt_t ==============
:#!!!! This avc can be allowed using the boolean 'virt_use_fusefs'
:
:allow svirt_t fusefs_t:file open;
:

Comment 1 StefanTudor 2012-10-30 07:44:59 UTC
Created attachment 635393 [details]
File: type

Comment 2 StefanTudor 2012-10-30 07:45:02 UTC
Created attachment 635394 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-10-30 19:07:43 UTC
# setsebool -P virt_use_fusefs 1