Bug 1013203

Summary: SELinux is preventing /home/mikhail/.local/share/Steam/ubuntu12_32/steam from using the 'execheap' accesses on a process.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:3767d6e9f4cd51f050dd062f15c81b9261822157f0e99778110bc2139cd91141
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-28 10:50:14 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 Mikhail 2013-09-28 10:04:05 UTC
Description of problem:
SELinux is preventing /home/mikhail/.local/share/Steam/ubuntu12_32/steam from using the 'execheap' accesses on a process.

*****  Plugin allow_execheap (53.1 confidence) suggests   ********************

If you do not think /home/mikhail/.local/share/Steam/ubuntu12_32/steam should need to map heap memory that is both writable and executable.
Then you need to report a bug. This is a potentially dangerous access.
Do
contact your security administrator and report this issue.

*****  Plugin catchall_boolean (42.6 confidence) suggests   ******************

If you want to allow selinuxuser to execheap
Then you must tell SELinux about this by enabling the 'selinuxuser_execheap' boolean.
You can read 'None' man page for more details.
Do
setsebool -P selinuxuser_execheap 1

*****  Plugin catchall (5.76 confidence) suggests   **************************

If you believe that steam should be allowed execheap access on processes labeled unconfined_t 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 steam /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                 [ process ]
Source                        steam
Source Path                   /home/mikhail/.local/share/Steam/ubuntu12_32/steam
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-83.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.1-300.fc20.x86_64 #1 SMP Sat
                              Sep 14 15:01:23 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-09-28 14:15:03 YEKT
Last Seen                     2013-09-28 14:15:03 YEKT
Local ID                      9c9711ae-d4b1-4692-ae87-d421c9aeab0d

Raw Audit Messages
type=AVC msg=audit(1380356103.925:676): avc:  denied  { execheap } for  pid=29502 comm="steam" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process


type=SYSCALL msg=audit(1380356103.925:676): arch=i386 syscall=capget success=no exit=EACCES a0=b106000 a1=c000 a2=7 a3=ffc7b15c items=0 ppid=5340 pid=29502 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=pts3 comm=steam exe=/home/mikhail/.local/share/Steam/ubuntu12_32/steam subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)

Hash: steam,unconfined_t,unconfined_t,process,execheap

Additional info:
reporter:       libreport-2.1.7
hashmarkername: setroubleshoot
kernel:         3.11.1-300.fc20.x86_64
type:           libreport

Potential duplicate: bug 894788

Comment 1 Daniel Walsh 2013-09-28 10:50:14 UTC

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

Comment 2 Daniel Walsh 2013-09-28 10:51:14 UTC
*****  Plugin allow_execheap (53.1 confidence) suggests   ********************

If you do not think /home/mikhail/.local/share/Steam/ubuntu12_32/steam should need to map heap memory that is both writable and executable.
Then you need to report a bug. This is a potentially dangerous access.
Do
contact your security administrator and report this issue.

Basically I don't like allowing this access, but probably game apps are a little shaky in their design.