Bug 791064

Summary: SELinux is preventing /usr/bin/qemu-system-x86_64 from 'execmem' accesses on the None .
Product: [Fedora] Fedora Reporter: dallas.molyneux
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, lonicerae, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c6f8d0ca6d2e71caa28afddc8d7392abc0008dbf0fac60a45db9a1f3fb5c55e7
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-15 17:08:48 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 dallas.molyneux 2012-02-16 02:34:16 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.2-1.fc16.x86_64
reason:         SELinux is preventing /usr/bin/qemu-system-x86_64 from 'execmem' accesses on the None .
time:           Wed 15 Feb 2012 07:34:02 PM MST

description:
:SELinux is preventing /usr/bin/qemu-system-x86_64 from 'execmem' accesses on the None .
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that qemu-system-x86_64 should be allowed execmem access on the  <Unknown> 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-system-x86 /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:svirt_t:s0:c307,c929
:Target Context                system_u:system_r:svirt_t:s0:c307,c929
:Target Objects                 [ None ]
:Source                        qemu-system-x86
:Source Path                   /usr/bin/qemu-system-x86_64
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           qemu-system-x86-0.15.1-4.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.3-2.fc16.x86_64 #1 SMP
:                              Fri Feb 3 20:08:08 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    Mon 13 Feb 2012 01:21:17 AM MST
:Last Seen                     Mon 13 Feb 2012 01:21:17 AM MST
:Local ID                      db1da5eb-5a40-4689-b33c-c0f4ad78d9d6
:
:Raw Audit Messages
:type=AVC msg=audit(1329121277.710:158): avc:  denied  { execmem } for  pid=7555 comm="qemu-system-x86" scontext=system_u:system_r:svirt_t:s0:c307,c929 tcontext=system_u:system_r:svirt_t:s0:c307,c929 tclass=processnode=(removed) type=SYSCALL msg=audit(1329121277.710:158): arch=c000003e syscall=9 success=no exit=-13 a0=0 a1=d940000 a2=7 a3=62 items=0 ppid=1 pid=7555 auid=4294967295 uid=107 gid=107 euid=107 suid=107 fsuid=107 egid=107 sgid=107 fsgid=107 tty=(none) ses=4294967295 comm="qemu-system-x86" exe="/usr/bin/qemu-system-x86_64" subj=system_u:system_r:svirt_t:s0:c307,c929 key=(null)
:
:
:Hash: qemu-system-x86,svirt_t,svirt_t,None,execmem
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Daniel Walsh 2012-02-16 17:56:20 UTC
Miroslav, I made a fix for the virt_use_execmem in F17 that needs to be back ported to F16.

Comment 2 Miroslav Grepl 2012-03-15 17:08:48 UTC
Also added to F16.