Bug 1043205 - SELinux is preventing /home/r1348/.local/share/Steam/SteamApps/common/Half-Life 2/hl2_linux from using the 'execheap' accesses on a process.
Summary: SELinux is preventing /home/r1348/.local/share/Steam/SteamApps/common/Half-Li...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c210ed67bf30efcdba620f43719...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-14 22:51 UTC by Dario Castellarin
Modified: 2013-12-16 10:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-16 10:04:21 UTC
Type: ---


Attachments (Terms of Use)

Description Dario Castellarin 2013-12-14 22:51:18 UTC
Description of problem:
Started Half Life 2 from Steam
SELinux is preventing /home/r1348/.local/share/Steam/SteamApps/common/Half-Life 2/hl2_linux from using the 'execheap' accesses on a process.

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

If non si pensa che /home/r1348/.local/share/Steam/SteamApps/common/Half-Life 2/hl2_linux possa mappare la memoria heap che è sia scrivibile che eseguibile.
Then è necessario riportare un bug. Questo è un accesso potenzialmente pericoloso.
Do
contattare il proprio amministratore di sicurezza e riportare il problema.

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

If si desidera allow selinuxuser to execheap
Then è necessario informare SELinux abilitando il booleano 'selinuxuser_execheap' .
Per maggiori informazioni consultare le pagina man di 'None'.
Do
setsebool -P selinuxuser_execheap 1

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

If si crede che hl2_linux dovrebbe avere possibilità di accesso execheap ai processi etichettati unconfined_t in modo predefinito.
Then si dovrebbe riportare il problema come bug.
E' possibile generare un modulo di politica locale per consentire questo accesso.
Do
consentire questo accesso per il momento eseguendo:
# grep hl2_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                        hl2_linux
Source Path                   /home/r1348/.local/share/Steam/SteamApps/common
                              /Half-Life 2/hl2_linux
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-106.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.12.5-301.fc20.x86_64 #1 SMP Fri
                              Dec 13 22:33:23 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-12-14 23:49:41 CET
Last Seen                     2013-12-14 23:49:41 CET
Local ID                      8da26e03-69f0-4b40-9c5d-5f7bc8b9d2fe

Raw Audit Messages
type=AVC msg=audit(1387061381.45:650): avc:  denied  { execheap } for  pid=7871 comm="hl2_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(1387061381.45:650): arch=i386 syscall=capget success=no exit=EACCES a0=1040e000 a1=c000 a2=7 a3=ffd7752c items=0 ppid=7868 pid=7871 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=hl2_linux exe=2F686F6D652F72313334382F2E6C6F63616C2F73686172652F537465616D2F537465616D417070732F636F6D6D6F6E2F48616C662D4C69666520322F686C325F6C696E7578 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)

Hash: hl2_linux,unconfined_t,unconfined_t,process,execheap

Additional info:
reporter:       libreport-2.1.10
hashmarkername: setroubleshoot
kernel:         3.12.5-301.fc20.x86_64
type:           libreport

Potential duplicate: bug 904691

Comment 1 Miroslav Grepl 2013-12-16 10:04:21 UTC
*****  Plugin allow_execheap (53.1 confidence) suggests   ********************

If non si pensa che /home/r1348/.local/share/Steam/SteamApps/common/Half-Life 2/hl2_linux possa mappare la memoria heap che è sia scrivibile che eseguibile.
Then è necessario riportare un bug. Questo è un accesso potenzialmente pericoloso.
Do
contattare il proprio amministratore di sicurezza e riportare il problema.

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

If si desidera allow selinuxuser to execheap
Then è necessario informare SELinux abilitando il booleano 'selinuxuser_execheap' .
Per maggiori informazioni consultare le pagina man di 'None'.
Do
setsebool -P selinuxuser_execheap 1


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