Bug 550702

Summary: SELinux is preventing /usr/bin/qemu "write" access on sr0.
Product: [Fedora] Fedora Reporter: fredouille <f.berard>
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: alhernandez73, dwalsh, f.berard, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:65e8fe6b0fb98ac9a76c6bc4c4c596729a28c716cba11eee4d56993863d10a94
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-28 11:22:16 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 fredouille 2009-12-26 22:26:17 UTC
Résumé:

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

Description détaillée:

[qemu a un type permissif (svirt_t). Cet accès n'a pas été refusé.]

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
report.

Informations complémentaires:

Contexte source               system_u:system_r:svirt_t:s0:c404,c976
Contexte cible                system_u:object_r:virt_content_t:s0
Objets du contexte            sr0 [ blk_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) 2.6.31.5-127.fc12.x86_64
                              #1 SMP Sat Nov 7 21:11:14 EST 2009 x86_64 x86_64
Compteur d'alertes            1
Première alerte              sam. 26 déc. 2009 22:34:39 CET
Dernière alerte              sam. 26 déc. 2009 22:34:39 CET
ID local                      200cea7b-9d2d-457d-87f3-8f6e5b44bd99
Numéros des lignes           

Messages d'audit bruts        

node=(removed) type=AVC msg=audit(1261863279.997:159): avc:  denied  { write } for  pid=17157 comm="qemu" name="sr0" dev=tmpfs ino=3489 scontext=system_u:system_r:svirt_t:s0:c404,c976 tcontext=system_u:object_r:virt_content_t:s0 tclass=blk_file

node=(removed) type=SYSCALL msg=audit(1261863279.997:159): arch=c000003e syscall=2 success=yes exit=128 a0=7fff7864c000 a1=1002 a2=1a4 a3=30 items=0 ppid=1 pid=17157 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:c404,c976 key=(null)



Hash String generated from  selinux-policy-3.6.32-59.fc12,catchall,qemu,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 2009-12-28 11:22:16 UTC

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