Bug 1277602 - SELinux is preventing csgo_linux from using the 'execheap' accesses on a process.
Summary: SELinux is preventing csgo_linux from using the 'execheap' accesses on a proc...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 23
Hardware: x86_64
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:cf6b3f45f3d6f096c98a5939adb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-03 16:06 UTC by Vinicius Reis
Modified: 2016-04-09 17:34 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-20 15:54:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vinicius Reis 2015-11-03 16:06:24 UTC
Description of problem:
Launching CSGO on Linux.
SELinux is preventing csgo_linux from using the 'execheap' accesses on a process.

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

If você não acredita que o csgo_linux deva precisar mapear a memória gravável e executável.
Then você precisa reportar um erro. Este é um acesso muito perigoso.
Do
contate seu administrador de segurança e reporte este problema.

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

If você deseja allow selinuxuser to execheap
Then você deve informar o SELinux sobre isso habilitando o booleano 'selinuxuser_execheap'.
Você pode ler a man page 'None' para mais detalhes.
Do
setsebool -P selinuxuser_execheap 1

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

If você acredita que o csgo_linux deva ser permitido o acesso de execheap em processos com rótulo unconfined_t por default.
Then você precisa reportar este como um erro.
Você pode gerar um módulo de política local para permitir este acesso.
Do
permitir este acesso agora executando:
# grep csgo_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                Unknown [ process ]
Source                        csgo_linux
Source Path                   csgo_linux
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-152.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.2.3-300.fc23.x86_64 #1 SMP Mon
                              Oct 5 15:42:54 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-11-03 13:49:05 BRST
Last Seen                     2015-11-03 13:49:05 BRST
Local ID                      4b146ca7-5b11-4953-a2f1-972320e279c8

Raw Audit Messages
type=AVC msg=audit(1446565745.876:584): avc:  denied  { execheap } for  pid=6351 comm="csgo_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 permissive=1


Hash: csgo_linux,unconfined_t,unconfined_t,process,execheap

Version-Release number of selected component:
selinux-policy-3.13.1-152.fc23.noarch

Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.2.3-300.fc23.x86_64
type:           libreport

Potential duplicate: bug 1197492

Comment 1 Lukas Vrabec 2015-11-20 15:54:17 UTC
We don't want allow this. 
If you want to allow it follow:
*****  Plugin catchall_boolean (42.6 confidence) suggests   ******************

If você deseja allow selinuxuser to execheap
Then você deve informar o SELinux sobre isso habilitando o booleano 'selinuxuser_execheap'.
Você pode ler a man page 'None' para mais detalhes.
Do
setsebool -P selinuxuser_execheap 1

Comment 2 Vinicius Reis 2015-11-20 16:02:43 UTC
Ok, thanks.

Comment 3 Chris 2016-01-16 10:23:32 UTC
Description of problem:
Just opened Counter-Strike: Global Offensive.

Version-Release number of selected component:
selinux-policy-3.13.1-158.fc23.noarch

Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.3.3-300.fc23.x86_64
type:           libreport

Comment 4 hx 2016-03-28 08:07:37 UTC
Description of problem:
Played CS:GO game on my box

Version-Release number of selected component:
selinux-policy-3.13.1-158.11.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-300.fc23.x86_64
type:           libreport

Comment 5 hx 2016-04-09 17:34:35 UTC
Description of problem:
Playing CS:GO in Steam

Version-Release number of selected component:
selinux-policy-3.13.1-158.12.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-301.fc23.x86_64
type:           libreport


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