Bug 569791

Summary: SELinux is preventing /usr/bin/qemu-kvm "write" access on sr0.
Product: [Fedora] Fedora Reporter: Jeremy Butler <jeremy.butler36>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: al_halama, anross, bruce, carlg, c.geissler-hinteruhlberg, cjm, dave, davide.rondini, david.m.beer, dwalsh, edneymatias, eric, frankly3d, gileadeg, jeremy.butler36, jmorris, john, john.mizell, jsd, loganjerry, luca.botti, melanphos, mgrepl, michael.monreal, mitr, morgankevinj, natxo, npatil, rob+redhat, ronaldcanete, smold, steved, svecar.zd, takacsis, timothy.mcconnell, ziro-grif
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:767b6a2e199d8819aa74abc1dd4c1eb832c1075b42b037024473d977af84886f
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-02 14:27:38 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:

Description Jeremy Butler 2010-03-02 12:50:34 UTC
Summary:

SELinux is preventing /usr/bin/qemu-kvm "write" access on sr0.

Detailed Description:

[qemu-kvm has a permissive type (svirt_t). This access was not denied.]

SELinux denied access requested by qemu-kvm. It is not expected that this access
is required by qemu-kvm and this access may signal an intrusion attempt. It is
also possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:svirt_t:s0:c201,c290
Target Context                system_u:object_r:virt_content_t:s0
Target Objects                sr0 [ blk_file ]
Source                        qemu-kvm
Source Path                   /usr/bin/qemu-kvm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           qemu-system-x86-0.11.0-13.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-89.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.12-174.2.22.fc12.x86_64
                              #1 SMP Fri Feb 19 18:55:03 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Mon 01 Mar 2010 10:30:43 PM EST
Last Seen                     Mon 01 Mar 2010 10:30:43 PM EST
Local ID                      de2deea6-bb9e-4716-83fc-70587e84895b
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1267500643.44:20): avc:  denied  { write } for  pid=2271 comm="qemu-kvm" name="sr0" dev=tmpfs ino=3499 scontext=system_u:system_r:svirt_t:s0:c201,c290 tcontext=system_u:object_r:virt_content_t:s0 tclass=blk_file

node=(removed) type=SYSCALL msg=audit(1267500643.44:20): arch=c000003e syscall=2 success=yes exit=128 a0=7fffb8de97c0 a1=1002 a2=1a4 a3=30 items=0 ppid=1 pid=2271 auid=4294967295 uid=107 gid=107 euid=107 suid=107 fsuid=107 egid=107 sgid=107 fsgid=107 tty=(none) ses=4294967295 comm="qemu-kvm" exe="/usr/bin/qemu-kvm" subj=system_u:system_r:svirt_t:s0:c201,c290 key=(null)



Hash String generated from  catchall,qemu-kvm,svirt_t,virt_content_t,blk_file,write
audit2allow suggests:
audit2allow is not installed.

Comment 1 Daniel Walsh 2010-03-02 14:27:38 UTC

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

Comment 2 Edney Matias 2010-05-04 11:24:33 UTC
This one happens when i try to boot a VM with a F13 KDE Live. It doesn't denie the access but i get warned.