Bug 1463697 - SELinux is preventing qemu-system-x86 from using the 'execmem' accesses on a process.
SELinux is preventing qemu-system-x86 from using the 'execmem' accesses on a ...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-06-21 10:10 EDT by Joachim Frieben
Modified: 2017-06-23 07:01 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-06-23 07:01:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joachim Frieben 2017-06-21 10:10:28 EDT
Description of problem:
SELinux is preventing qemu-system-x86 from using the 'execmem' accesses on a process.

*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

If you want to allow virt to use execmem
Then you must tell SELinux about this by enabling the 'virt_use_execmem' boolean.

setsebool -P virt_use_execmem 1

*****  Plugin catchall (11.6 confidence) suggests   **************************

If you believe that qemu-system-x86 should be allowed execmem access on processes labeled svirt_t by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# ausearch -c 'qemu-system-x86' --raw | audit2allow -M my-qemusystemx86
# semodule -X 300 -i my-qemusystemx86.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:svirt_t:s0:c115,c493
Target Context                unconfined_u:unconfined_r:svirt_t:s0:c115,c493
Target Objects                Unknown [ process ]
Source                        qemu-system-x86
Source Path                   qemu-system-x86
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-257.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.11.6-300.fc26.x86_64 #1 SMP Mon
                              Jun 19 17:19:26 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-06-21 16:08:59 CEST
Last Seen                     2017-06-21 16:08:59 CEST
Local ID                      fe877ac1-3fc9-42c9-9c35-4a8381a994d8

Raw Audit Messages
type=AVC msg=audit(1498054139.187:341): avc:  denied  { execmem } for  pid=23216 comm="qemu-system-x86" scontext=unconfined_u:unconfined_r:svirt_t:s0:c115,c493 tcontext=unconfined_u:unconfined_r:svirt_t:s0:c115,c493 tclass=process permissive=0

Hash: qemu-system-x86,svirt_t,svirt_t,process,execmem

Version-Release number of selected component:

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.11.6-300.fc26.x86_64
type:           libreport

Potential duplicate: bug 1159823

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