Bug 1229063

Summary: SELinux is preventing httpd from using the 'execmem' accesses on a process.
Product: [Fedora] Fedora Reporter: Erfurt A <erfurt.anatolij84>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:384b688cac7d3c24d943c5cf04ba068e99598360b37bc75f799775cf349d56ce
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-17 10:49:23 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 Erfurt A 2015-06-08 01:10:38 UTC
Description of problem:
SELinux is preventing httpd from using the 'execmem' accesses on a process.

*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

If sie folgendes tun möchten: allow httpd to execmem
Then sie müssen SELinux darüber benachrichtigen, indem Sie die 	boolesche Variable »httpd_execmem« aktivieren.
Für weitere Einzelheiten, können Sie die »None« man-Seiten konsultieren.
Do
setsebool -P httpd_execmem 1

*****  Plugin catchall (11.6 confidence) suggests   **************************

If sie denken, dass es httpd standardmäßig erlaubt sein sollte, execmem Zugriff auf httpd_t Prozesse zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# grep httpd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:httpd_t:s0
Target Context                system_u:system_r:httpd_t:s0
Target Objects                Unknown [ process ]
Source                        httpd
Source Path                   httpd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-105.13.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.0.4-202.fc21.x86_64 #1 SMP Wed
                              May 27 22:28:42 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-06-08 02:52:50 CEST
Last Seen                     2015-06-08 02:52:50 CEST
Local ID                      bf0ebf74-9a58-452a-ac9c-e5a6b3e49429

Raw Audit Messages
type=AVC msg=audit(1433724770.547:541): avc:  denied  { execmem } for  pid=7154 comm="httpd" scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:system_r:httpd_t:s0 tclass=process permissive=1


Hash: httpd,httpd_t,httpd_t,process,execmem

Version-Release number of selected component:
selinux-policy-3.13.1-105.13.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         4.0.4-202.fc21.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2015-06-17 10:49:23 UTC
*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

If sie folgendes tun möchten: allow httpd to execmem
Then sie müssen SELinux darüber benachrichtigen, indem Sie die 	boolesche Variable »httpd_execmem« aktivieren.
Für weitere Einzelheiten, können Sie die »None« man-Seiten konsultieren.
Do
setsebool -P httpd_execmem 1