Bug 560849 - SELinux is preventing /usr/bin/qemu-kvm "write" access on sr0.
Summary: SELinux is preventing /usr/bin/qemu-kvm "write" access on sr0.
Keywords:
Status: CLOSED DUPLICATE of bug 536760
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:1a9127977da...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-02 01:10 UTC by Kenny Armstrong
Modified: 2010-02-03 23:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-02 11:53:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kenny Armstrong 2010-02-02 01:10:24 UTC
Summary:

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

Detailed Description:

[SELinux is in permissive mode. 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:c345,c589
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-12.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-73.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.12-174.2.3.fc12.x86_64
                              #1 SMP Mon Jan 18 19:52:07 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Mon 01 Feb 2010 08:09:03 PM EST
Last Seen                     Mon 01 Feb 2010 08:09:03 PM EST
Local ID                      a0542f9c-636d-4d5b-b015-43b91d79b208
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1265072943.656:23888): avc:  denied  { write } for  pid=2923 comm="qemu-kvm" name="sr0" dev=tmpfs ino=3490 scontext=system_u:system_r:svirt_t:s0:c345,c589 tcontext=system_u:object_r:virt_content_t:s0 tclass=blk_file

node=(removed) type=SYSCALL msg=audit(1265072943.656:23888): arch=c000003e syscall=2 success=no exit=-30 a0=7fffc0aa8030 a1=1002 a2=1a4 a3=30 items=0 ppid=1 pid=2923 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:c345,c589 key=(null)



Hash String generated from  selinux-policy-3.6.32-73.fc12,catchall,qemu-kvm,svirt_t,virt_content_t,blk_file,write
audit2allow suggests:

#============= svirt_t ==============
allow svirt_t virt_content_t:blk_file write;

Comment 1 Miroslav Grepl 2010-02-02 11:53:56 UTC

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


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