Bug 907379 - SELinux is preventing /home/jakob/.local/share/Steam/SteamApps/common/Half-Life/hl_linux from using the 'execheap' accesses on a process.
Summary: SELinux is preventing /home/jakob/.local/share/Steam/SteamApps/common/Half-Li...
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4082a0b46657afa25ecb44659f5...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-04 09:02 UTC by Jake Jackson
Modified: 2013-02-04 11:43 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-04 11:43:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2013-02-04 09:02 UTC, Jake Jackson
no flags Details
File: hashmarkername (14 bytes, text/plain)
2013-02-04 09:02 UTC, Jake Jackson
no flags Details

Description Jake Jackson 2013-02-04 09:02:28 UTC
Description of problem:
Tried to start CounterStrike 1.6 for Linux via Steam

Additional info:
libreport version: 2.0.18
kernel:         3.7.3-101.fc17.x86_64

description:
:SELinux is preventing /home/jakob/.local/share/Steam/SteamApps/common/Half-Life/hl_linux from using the 'execheap' accesses on a process.
:
:*****  Plugin allow_execheap (53.1 confidence) suggests  *********************
:
:If you do not think /home/jakob/.local/share/Steam/SteamApps/common/Half-Life/hl_linux 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_execheap
:Then you must tell SELinux about this by enabling the 'allow_execheap' boolean.You can read 'unconfined_selinux' man page for more details.
:Do
:setsebool -P allow_execheap 1
:
:*****  Plugin catchall (5.76 confidence) suggests  ***************************
:
:If you believe that hl_linux 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 hl_linux /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                        hl_linux
:Source Path                   /home/jakob/.local/share/Steam/SteamApps/common
:                              /Half-Life/hl_linux
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-166.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.7.3-101.fc17.x86_64 #1 SMP Fri
:                              Jan 18 17:40:57 UTC 2013 x86_64 x86_64
:Alert Count                   2
:First Seen                    2013-02-04 09:55:30 CET
:Last Seen                     2013-02-04 10:00:02 CET
:Local ID                      7d011340-e888-443b-8f87-152d0e97d8ec
:
:Raw Audit Messages
:type=AVC msg=audit(1359968402.331:110): avc:  denied  { execheap } for  pid=6866 comm="hl_linux" 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(1359968402.331:110): arch=i386 syscall=capget success=no exit=EACCES a0=89e5000 a1=c000 a2=7 a3=ffea4bec items=0 ppid=6182 pid=6866 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=2 tty=(none) comm=hl_linux exe=/home/jakob/.local/share/Steam/SteamApps/common/Half-Life/hl_linux subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)
:
:Hash: hl_linux,unconfined_t,unconfined_t,process,execheap
:
:audit2allow
:
:#============= unconfined_t ==============
:#!!!! This avc can be allowed using the boolean 'allow_execheap'
:
:allow unconfined_t self:process execheap;
:
:audit2allow -R
:
:#============= unconfined_t ==============
:#!!!! This avc can be allowed using the boolean 'allow_execheap'
:
:allow unconfined_t self:process execheap;
:


Potential duplicate bug: 904469

Comment 1 Jake Jackson 2013-02-04 09:02:33 UTC
Created attachment 692660 [details]
File: type

Comment 2 Jake Jackson 2013-02-04 09:02:36 UTC
Created attachment 692661 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2013-02-04 11:43:17 UTC
You will need to turn on the allow_execheap boolean.

setsebool -P allow_execheap 1


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