Bug 1303455 - SELinux is preventing /usr/sbin/httpd from 'write' accesses on the directory data.
Summary: SELinux is preventing /usr/sbin/httpd from 'write' accesses on the directory ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6ca4edd0bc87d776eed1484bdc1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-31 21:42 UTC by John Griffiths
Modified: 2016-01-31 22:09 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-01-31 22:09:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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