Bug 1472872 - SELinux prevents gnome-boxes from working
SELinux prevents gnome-boxes from working
Status: NEW
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-07-19 10:58 EDT by dimiter.velichkov
Modified: 2017-07-19 10:58 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:
Type: Bug
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 dimiter.velichkov 2017-07-19 10:58:49 EDT
Description of problem:

gnome-boxes basically doesn't work with SELinux enabled

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Attempt to suspend/resume stop/start a box

Actual results:

SELinux policy errors in system log, attempted operation doesn't work

Expected results:

Additional info:

from syslog:

SELinux is preventing qemu-system-x86 from search access on the directory 2589. For complete SELinux messages run: sealert -l b3130efb-7a3b-47ce-b64f-1fb04e7da688

SELinux is preventing qemu-system-x86 from read access on the file cmdline. For complete SELinux messages run: sealert -l 2e5d72d8-4932-4f16-8e12-f284d8dec177

sudo sealert -l b1cd6111-a899-4c97-a588-85b292f82709
SELinux is preventing qemu-system-x86 from search access on the directory 2589.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that qemu-system-x86 should be allowed search access on the 2589 directory 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:c284,c734
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
Target Objects                2589 [ dir ]
Source                        qemu-system-x86
Source Path                   qemu-system-x86
Port                          <Unknown>
Host                          pompeii
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-260.1.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     pompeii
Platform                      Linux pompeii 4.11.10-300.fc26.x86_64 #1 SMP Wed
                              Jul 12 17:05:39 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-07-19 08:48:46 MDT
Last Seen                     2017-07-19 08:48:46 MDT
Local ID                      b1cd6111-a899-4c97-a588-85b292f82709

Raw Audit Messages
type=AVC msg=audit(1500475726.328:330): avc:  denied  { search } for  pid=7355 comm="qemu-system-x86" name="2589" dev="proc" ino=41392 scontext=unconfined_u:unconfined_r:svirt_t:s0:c284,c734 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=dir permissive=0

Hash: qemu-system-x86,svirt_t,unconfined_t,dir,search

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