Bug 1303455

Summary: SELinux is preventing /usr/sbin/httpd from 'write' accesses on the directory data.
Product: [Fedora] Fedora Reporter: John Griffiths <fedora.jrg01>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6ca4edd0bc87d776eed1484bdc129f7b21ca5d424fbfc95b5981db7837f79004;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-31 22:09:19 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 John Griffiths 2016-01-31 21:42:25 UTC
Description of problem:
Installing Squirrelmail. Selinux permissions do not allow user to log in to Squirrelmail.
SELinux is preventing /usr/sbin/httpd from 'write' accesses on the directory data.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that httpd should be allowed write access on the data directory 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 /usr/sbin/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                unconfined_u:object_r:var_spool_t:s0
Target Objects                data [ dir ]
Source                        /usr/sbin/httpd
Source Path                   /usr/sbin/httpd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           httpd-2.4.17-1.fc22.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.21.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.2.8-200.fc22.x86_64 #1 SMP Tue
                              Dec 15 16:50:23 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2016-01-31 16:36:11 EST
Last Seen                     2016-01-31 16:36:11 EST
Local ID                      76a2665e-0a76-416c-8f69-f79b5fd089b4

Raw Audit Messages
type=AVC msg=audit(1454276171.939:364322): avc:  denied  { write } for  pid=12282 comm="/usr/sbin/httpd" name="data" dev="dm-0" ino=5516746 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:var_spool_t:s0 tclass=dir permissive=0


Hash: /usr/sbin/httpd,httpd_t,var_spool_t,dir,write

Version-Release number of selected component:
selinux-policy-3.13.1-128.21.fc22.noarch

Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.2.8-200.fc22.x86_64
type:           libreport

Comment 1 John Griffiths 2016-01-31 22:09:19 UTC
After further investigation, this is not a Selinux issue.