Bug 1303455 - SELinux is preventing /usr/sbin/httpd from 'write' accesses on the directory data.
SELinux is preventing /usr/sbin/httpd from 'write' accesses on the directory ...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
22
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:6ca4edd0bc87d776eed1484bdc1...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-31 16:42 EST by John Griffiths
Modified: 2016-01-31 17:09 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-01-31 17:09:19 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description John Griffiths 2016-01-31 16:42:25 EST
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 17:09:19 EST
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.