Bug 704659 - SELinux is preventing /usr/bin/qemu-kvm from 'read' accesses on the file pulse-shm-3997504744.
Summary: SELinux is preventing /usr/bin/qemu-kvm from 'read' accesses on the file puls...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:acce4639ccd...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-13 21:47 UTC by David R. Fischer
Modified: 2011-07-12 05:17 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.9.7-42.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-12 05:17:28 UTC
Type: ---


Attachments (Terms of Use)

Description David R. Fischer 2011-05-13 21:47:06 UTC
SELinux is preventing /usr/bin/qemu-kvm from 'read' accesses on the file pulse-shm-3997504744.

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

If you believe that qemu-kvm should be allowed read access on the pulse-shm-3997504744 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-kvm /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:svirt_t:s0:c641,c768
Target Context                system_u:object_r:svirt_tmpfs_t:s0:c106,c551
Target Objects                pulse-shm-3997504744 [ file ]
Source                        qemu-kvm
Source Path                   /usr/bin/qemu-kvm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           qemu-system-x86-0.13.0-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.13-91.fc14.x86_64 #1 SMP Tue May
                              3 13:23:06 UTC 2011 x86_64 x86_64
Alert Count                   3
First Seen                    Fri 13 May 2011 02:45:38 PM MST
Last Seen                     Fri 13 May 2011 02:45:38 PM MST
Local ID                      ffd925ac-02cf-4a2d-820b-47bc7a60b771

Raw Audit Messages
type=AVC msg=audit(1305323138.793:842): avc:  denied  { read } for  pid=688 comm="qemu-kvm" name="pulse-shm-3997504744" dev=tmpfs ino=651382 scontext=system_u:system_r:svirt_t:s0:c641,c768 tcontext=system_u:object_r:svirt_tmpfs_t:s0:c106,c551 tclass=file


type=SYSCALL msg=audit(1305323138.793:842): arch=x86_64 syscall=open success=no exit=EACCES a0=7fff4ba0d6e0 a1=a0000 a2=0 a3=0 items=0 ppid=1 pid=688 auid=500 uid=107 gid=107 euid=107 suid=107 fsuid=107 egid=107 sgid=107 fsgid=107 tty=(none) ses=2 comm=qemu-kvm exe=/usr/bin/qemu-kvm subj=system_u:system_r:svirt_t:s0:c641,c768 key=(null)

Hash: qemu-kvm,svirt_t,svirt_tmpfs_t,file,read

audit2allow

#============= svirt_t ==============
#!!!! This avc is a constraint violation.  You will need to add an attribute to either the source or target type to make it work.
#Contraint rule: 
allow svirt_t svirt_tmpfs_t:file read;

audit2allow -R

#============= svirt_t ==============
#!!!! This avc is a constraint violation.  You will need to add an attribute to either the source or target type to make it work.
#Contraint rule: 
allow svirt_t svirt_tmpfs_t:file read;

Comment 1 Daniel Walsh 2011-05-17 09:07:17 UTC
Miroslav add

        # virt will attempt to us another virtualizations pubsaudio tmpfs_t, ignore error
	dontaudit svirt_t svirt_tmpfs_t:file { read write };

to virt_domain_template

Comment 2 Miroslav Grepl 2011-05-17 13:05:29 UTC
Fixed in selinux-policy-3.9.7-42.fc14

Comment 3 Fedora Update System 2011-05-27 15:46:23 UTC
selinux-policy-3.9.7-42.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-42.fc14

Comment 4 Fedora Update System 2011-05-27 20:28:20 UTC
Package selinux-policy-3.9.7-42.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.7-42.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-42.fc14
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2011-07-12 05:15:50 UTC
selinux-policy-3.9.7-42.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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