Bug 1142767 - SELinux is preventing /usr/bin/qemu-system-x86_64 from 'open' accesses on the file .
Summary: SELinux is preventing /usr/bin/qemu-system-x86_64 from 'open' accesses on the...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d124388b1722af68e5d79d0be48...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-17 11:27 UTC by Timur Kristóf
Modified: 2014-09-17 12:28 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-09-17 12:28:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Timur Kristóf 2014-09-17 11:27:02 UTC
Description of problem:
I tried to add a virtual machine in the Gnome Boxes application.
SELinux is preventing /usr/bin/qemu-system-x86_64 from 'open' accesses on the file .

*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

If you want to allow virt to use fusefs
Then you must tell SELinux about this by enabling the 'virt_use_fusefs' boolean.
You can read 'None' man page for more details.
Do
setsebool -P virt_use_fusefs 1

*****  Plugin catchall (11.6 confidence) suggests   **************************

If you believe that qemu-system-x86_64 should be allowed open access on the  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                unconfined_u:system_r:svirt_t:s0:c577,c929
Target Context                system_u:object_r:fusefs_t:s0
Target Objects                 [ file ]
Source                        qemu-system-x86
Source Path                   /usr/bin/qemu-system-x86_64
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           qemu-system-x86-1.6.2-8.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-183.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.16.2-200.fc20.x86_64 #1 SMP Mon
                              Sep 8 11:54:45 UTC 2014 x86_64 x86_64
Alert Count                   2
First Seen                    2014-09-17 13:25:22 CEST
Last Seen                     2014-09-17 13:25:22 CEST
Local ID                      20cc1b73-e041-4ed2-8e48-125270bbdce5

Raw Audit Messages
type=AVC msg=audit(1410953122.783:431): avc:  denied  { open } for  pid=7844 comm="qemu-system-x86" path=2F72756E2F6D656469612F54696D75722F54696D75722036343047422F53747566662F496E7374616C6C6572732F49534F2F57696E646F777320372050726F66657373696F6E616C20776974682053657276696365205061636B2031202878363429202D204456442028456E676C697368292F656E5F77696E646F77735F375F70726F66657373696F6E616C5F776974685F7370315F7836345F6476645F755F3637363933392E69736F dev="sdb1" ino=54786 scontext=unconfined_u:system_r:svirt_t:s0:c577,c929 tcontext=system_u:object_r:fusefs_t:s0 tclass=file permissive=0


type=SYSCALL msg=audit(1410953122.783:431): arch=x86_64 syscall=open success=no exit=EACCES a0=7f8001d8e410 a1=80000 a2=0 a3=fffffffffffdfc00 items=0 ppid=1 pid=7844 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=1 comm=qemu-system-x86 exe=/usr/bin/qemu-system-x86_64 subj=unconfined_u:system_r:svirt_t:s0:c577,c929 key=(null)

Hash: qemu-system-x86,svirt_t,fusefs_t,file,open

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.16.2-200.fc20.x86_64
type:           libreport

Potential duplicate: bug 871300

Comment 1 Miroslav Grepl 2014-09-17 12:28:32 UTC
*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

If you want to allow virt to use fusefs
Then you must tell SELinux about this by enabling the 'virt_use_fusefs' boolean.
You can read 'None' man page for more details.
Do
setsebool -P virt_use_fusefs 1


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