Bug 550951 - SELinux is preventing /usr/bin/qemu "read write" access on 004.
Summary: SELinux is preventing /usr/bin/qemu "read write" access on 004.
Status: CLOSED DUPLICATE of bug 537227
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 12
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:9df20856220...
: 561494 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2009-12-28 09:18 UTC by fredouille
Modified: 2010-03-16 16:05 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-03-16 16:05:43 UTC
Type: ---

Attachments (Terms of Use)

Description fredouille 2009-12-28 09:18:37 UTC

SELinux is preventing /usr/bin/qemu "read write" access on 004.

Description détaillée:

SELinux denied access requested by qemu. It is not expected that this access is
required by qemu 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.

Autoriser l'accès:

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

Informations complémentaires:

Contexte source               system_u:system_r:svirt_t:s0:c365,c655
Contexte cible                system_u:object_r:usb_device_t:s0
Objets du contexte            004 [ chr_file ]
source                        qemu
Chemin de la source           /usr/bin/qemu
Port                          <Inconnu>
Hôte                         (removed)
Paquetages RPM source         qemu-system-x86-0.11.0-12.fc12
Paquetages RPM cible          
Politique RPM                 selinux-policy-3.6.32-59.fc12
Selinux activé               True
Type de politique             targeted
Mode strict                   Enforcing
Nom du plugin                 catchall
Nom de l'hôte                (removed)
Plateforme                    Linux (removed)
                              #1 SMP Mon Dec 21 05:33:33 UTC 2009 x86_64 x86_64
Compteur d'alertes            1
Première alerte              dim. 27 déc. 2009 16:23:48 CET
Dernière alerte              dim. 27 déc. 2009 16:23:48 CET
ID local                      0fb7d9a8-ffb6-4908-af3f-cc871bf196bb
Numéros des lignes           

Messages d'audit bruts        

node=(removed) type=AVC msg=audit(1261927428.241:36): avc:  denied  { read write } for  pid=4330 comm="qemu" name="004" dev=tmpfs ino=237799 scontext=system_u:system_r:svirt_t:s0:c365,c655 tcontext=system_u:object_r:usb_device_t:s0 tclass=chr_file

node=(removed) type=SYSCALL msg=audit(1261927428.241:36): arch=c000003e syscall=2 success=no exit=-13 a0=7fff47724690 a1=802 a2=7fff477246a4 a3=fffffff4 items=0 ppid=1 pid=4330 auid=4294967295 uid=107 gid=107 euid=107 suid=107 fsuid=107 egid=107 sgid=107 fsgid=107 tty=(none) ses=4294967295 comm="qemu" exe="/usr/bin/qemu" subj=system_u:system_r:svirt_t:s0:c365,c655 key=(null)

Hash String generated from  selinux-policy-3.6.32-59.fc12,catchall,qemu,svirt_t,usb_device_t,chr_file,read,write
audit2allow suggests:

#============= svirt_t ==============
allow svirt_t usb_device_t:chr_file { read write };

Comment 1 Daniel Walsh 2009-12-29 23:37:51 UTC
This looks like libvirt failed to label the usb device.

Comment 2 Daniel Walsh 2010-02-03 19:10:18 UTC
*** Bug 561494 has been marked as a duplicate of this bug. ***

Comment 3 Cole Robinson 2010-03-16 16:05:43 UTC
Pretty sure this is a symptom of bug 537227

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

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