Bug 1222190 - SELinux is preventing qemu-system-x86 from 'open' accesses on the file /dev/shm/lttng-ust-wait-5.
Summary: SELinux is preventing qemu-system-x86 from 'open' accesses on the file /dev/s...
Keywords:
Status: CLOSED DUPLICATE of bug 1221945
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:808ddfc6a02d9ae5a4e2418efab...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-16 06:46 UTC by Vratislav Podzimek
Modified: 2015-05-18 09:35 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-05-18 09:35:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vratislav Podzimek 2015-05-16 06:46:19 UTC
Description of problem:
Running VMs.
SELinux is preventing qemu-system-x86 from 'open' accesses on the file /dev/shm/lttng-ust-wait-5.

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

If you believe that qemu-system-x86 should be allowed open access on the lttng-ust-wait-5 file 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_tcg_t:s0:c200,c933
Target Context                system_u:object_r:tmpfs_t:s0
Target Objects                /dev/shm/lttng-ust-wait-5 [ file ]
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-126.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.0.3-300.fc22.x86_64 #1 SMP Wed
                              May 13 18:43:52 UTC 2015 x86_64 x86_64
Alert Count                   4
First Seen                    2015-05-16 08:45:35 CEST
Last Seen                     2015-05-16 08:45:45 CEST
Local ID                      a422c8b9-97c5-42a0-aef3-cba6cf713170

Raw Audit Messages
type=AVC msg=audit(1431758745.569:558): avc:  denied  { open } for  pid=5772 comm="qemu-system-x86" path="/dev/shm/lttng-ust-wait-5" dev="tmpfs" ino=30318 scontext=system_u:system_r:svirt_tcg_t:s0:c200,c933 tcontext=system_u:object_r:tmpfs_t:s0 tclass=file permissive=0


Hash: qemu-system-x86,svirt_tcg_t,tmpfs_t,file,open

Version-Release number of selected component:
selinux-policy-3.13.1-126.fc22.noarch

Additional info:
reporter:       libreport-2.5.1
hashmarkername: setroubleshoot
kernel:         4.0.3-300.fc22.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2015-05-18 09:35:54 UTC

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


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