Bug 1370985

Summary: SELinux is preventing libvirtd from 'entrypoint' accesses on the file /usr/bin/qemu-kvm.
Product: [Fedora] Fedora Reporter: Sylvain Réault <vindicators>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:339e2b71a3e0d5ec1e762e07842f5b343776b52a5f127ff915dbcaa3ac76d745;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-29 10:12:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sylvain Réault 2016-08-29 05:46:11 UTC
Description of problem:
SELinux is preventing libvirtd from 'entrypoint' accesses on the file /usr/bin/qemu-kvm.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If vous souhaitez corriger l'étiquette. 
L'étiquette par défaut de /usr/bin/qemu-kvm devrait être qemu_exec_t.
Then vous pouvez exécuter restorecon.
Do
# /sbin/restorecon -v /usr/bin/qemu-kvm

*****  Plugin catchall (1.49 confidence) suggests   **************************

If vous pensez que libvirtd devrait être autorisé à accéder entrypoint sur qemu-kvm file par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
allow this access for now by executing:
# ausearch -c 'libvirtd' --raw | audit2allow -M my-libvirtd
# semodule -X 300 -i my-libvirtd.pp

Additional Information:
Source Context                system_u:system_r:svirt_tcg_t:s0:c400,c643
Target Context                system_u:object_r:bin_t:s0
Target Objects                /usr/bin/qemu-kvm [ file ]
Source                        libvirtd
Source Path                   libvirtd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           qemu-system-x86-2.6.1-1.fc24.x86_64
Policy RPM                    selinux-policy-3.13.1-191.12.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.6.7-300.fc24.x86_64 #1 SMP Wed
                              Aug 17 18:48:43 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-08-24 19:41:03 CEST
Last Seen                     2016-08-24 19:41:03 CEST
Local ID                      3117f076-480b-4f7a-a48b-76dc04a09a95

Raw Audit Messages
type=AVC msg=audit(1472060463.948:601): avc:  denied  { entrypoint } for  pid=12145 comm="libvirtd" path="/usr/bin/qemu-kvm" dev="dm-0" ino=3014949 scontext=system_u:system_r:svirt_tcg_t:s0:c400,c643 tcontext=system_u:object_r:bin_t:s0 tclass=file permissive=1


Hash: libvirtd,svirt_tcg_t,bin_t,file,entrypoint

Version-Release number of selected component:
selinux-policy-3.13.1-191.12.fc24.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.7.2-200.fc24.x86_64
type:           libreport

Comment 1 Daniel Walsh 2016-08-29 10:12:41 UTC
The alert tells you what to do.  Somehow qemu-kvm got mislabeled.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If vous souhaitez corriger l'étiquette. 
L'étiquette par défaut de /usr/bin/qemu-kvm devrait être qemu_exec_t.
Then vous pouvez exécuter restorecon.
Do
# /sbin/restorecon -v /usr/bin/qemu-kvm