Bug 1221907

Summary: SELinux is preventing qemu-system-x86 from 'open' accesses on the file /dev/shm/lttng-ust-wait-5-1000.
Product: [Fedora] Fedora Reporter: Alexander Kurtakov <akurtako>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: devin, dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:7e75f46e88f6e46a85e26ceb20fbae88684bc45171f4d1190a39431cde31e8cc
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-18 08:01:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexander Kurtakov 2015-05-15 08:36:02 UTC
Description of problem:
SELinux is preventing qemu-system-x86 from 'open' accesses on the file /dev/shm/lttng-ust-wait-5-1000.

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

If you believe that qemu-system-x86 should be allowed open access on the lttng-ust-wait-5-1000 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                unconfined_u:unconfined_r:svirt_t:s0:c628,c980
Target Context                unconfined_u:object_r:user_tmp_t:s0
Target Objects                /dev/shm/lttng-ust-wait-5-1000 [ 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                   7
First Seen                    2015-05-15 11:35:03 EEST
Last Seen                     2015-05-15 11:35:28 EEST
Local ID                      4d5f0936-6bdc-4d26-8290-e72cbed9dbfa

Raw Audit Messages
type=AVC msg=audit(1431678928.723:562): avc:  denied  { open } for  pid=4620 comm="qemu-system-x86" path="/dev/shm/lttng-ust-wait-5-1000" dev="tmpfs" ino=52418 scontext=unconfined_u:unconfined_r:svirt_t:s0:c628,c980 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file permissive=0


Hash: qemu-system-x86,svirt_t,user_tmp_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

Potential duplicate: bug 1145081

Comment 1 Miroslav Grepl 2015-05-18 08:01:05 UTC

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