Bug 1380937 - SELinux is preventing php-fpm from 'create' accesses on the directory gavrilovmv.
Summary: SELinux is preventing php-fpm from 'create' accesses on the directory gavrilo...
Keywords:
Status: CLOSED DUPLICATE of bug 1136092
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:83bb3d006793f056e4afff66fe4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-01 17:11 UTC by Mikhail
Modified: 2016-10-03 10:57 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-03 10:57:11 UTC
Type: ---


Attachments (Terms of Use)

Description Mikhail 2016-10-01 17:11:59 UTC
Description of problem:
SELinux is preventing php-fpm from 'create' accesses on the directory gavrilovmv.

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

If you want to allow httpd to unified
Then you must tell SELinux about this by enabling the 'httpd_unified' boolean.
You can read 'None' man page for more details.
Do
setsebool -P httpd_unified 1

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

If you believe that php-fpm should be allowed create access on the gavrilovmv 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:
# ausearch -c 'php-fpm' --raw | audit2allow -M my-phpfpm
# semodule -X 300 -i my-phpfpm.pp

Additional Information:
Source Context                system_u:system_r:httpd_t:s0
Target Context                system_u:object_r:httpd_user_ra_content_t:s0
Target Objects                gavrilovmv [ dir ]
Source                        php-fpm
Source Path                   php-fpm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-215.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed)
                              4.8.0-0.rc8.git0.1.fc25.x86_64+debug #1 SMP Mon
                              Sep 26 16:46:31 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-10-01 17:02:37 YEKT
Last Seen                     2016-10-01 17:02:37 YEKT
Local ID                      061cd4bd-4cf3-49f5-b898-69433c2c09c4

Raw Audit Messages
type=AVC msg=audit(1475323357.164:1091): avc:  denied  { create } for  pid=30142 comm="php-fpm" name="gavrilovmv" scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_user_ra_content_t:s0 tclass=dir permissive=1


Hash: php-fpm,httpd_t,httpd_user_ra_content_t,dir,create

Version-Release number of selected component:
selinux-policy-3.13.1-215.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc8.git0.1.fc25.x86_64+debug
type:           libreport

Potential duplicate: bug 1136092

Comment 1 Lukas Vrabec 2016-10-03 10:57:11 UTC

*** This bug has been marked as a duplicate of bug 1136092 ***


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