Bug 1294432 - SELinux is preventing qemu-system-x86 from 'read' accesses on the file kali-linux-2.0-amd64.iso.
Summary: SELinux is preventing qemu-system-x86 from 'read' accesses on the file kali-l...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 23
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:73b8315a59abeee67870efe96ff...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-28 08:10 UTC by Levzhazy Nurrevir
Modified: 2016-03-16 23:29 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-16 23:29:54 UTC
Type: ---


Attachments (Terms of Use)

Description Levzhazy Nurrevir 2015-12-28 08:10:29 UTC
Description of problem:
SELinux is preventing qemu-system-x86 from 'read' accesses on the file kali-linux-2.0-amd64.iso.

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

If you believe that qemu-system-x86 should be allowed read access on the kali-linux-2.0-amd64.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-system-x86 /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:svirt_t:s0:c412,c733
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                kali-linux-2.0-amd64.iso [ file ]
Source                        qemu-system-x86
Source Path                   qemu-system-x86
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-158.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.2.8-300.fc23.x86_64 #1 SMP Tue
                              Dec 15 16:49:06 UTC 2015 x86_64 x86_64
Alert Count                   2
First Seen                    2015-12-26 15:54:00 YEKT
Last Seen                     2015-12-26 15:54:00 YEKT
Local ID                      76ca0bb2-0a2e-4e10-86e6-54a1cd15aeda

Raw Audit Messages
type=AVC msg=audit(1451127240.98:897): avc:  denied  { read } for  pid=31717 comm="qemu-system-x86" name="kali-linux-2.0-amd64.iso" dev="dm-2" ino=658659 scontext=unconfined_u:unconfined_r:svirt_t:s0:c412,c733 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0


Hash: qemu-system-x86,svirt_t,user_home_t,file,read

Version-Release number of selected component:
selinux-policy-3.13.1-158.fc23.noarch

Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.2.8-300.fc23.x86_64
type:           libreport

Potential duplicate: bug 988996

Comment 1 Miroslav Grepl 2016-01-21 09:31:59 UTC
How did you create the VM (what tool)?

How did you start the VM?


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