Bug 1279118 - SELinux is preventing php-fpm from 'setattr' accesses on the file dbc5ef578a127edd6dc0e3361dd41b4a.bin.
SELinux is preventing php-fpm from 'setattr' accesses on the file dbc5ef578a1...
Status: CLOSED DUPLICATE of bug 1279114
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-11-07 19:09 EST by Mikhail
Modified: 2015-11-09 02:28 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-11-09 02:28:06 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mikhail 2015-11-07 19:09:30 EST
Description of problem:
SELinux is preventing php-fpm from 'setattr' accesses on the file dbc5ef578a127edd6dc0e3361dd41b4a.bin.

*****  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.
setsebool -P httpd_unified 1

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

If you believe that php-fpm should be allowed setattr access on the dbc5ef578a127edd6dc0e3361dd41b4a.bin file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# grep php-fpm /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:object_r:httpd_user_content_t:s0
Target Objects                dbc5ef578a127edd6dc0e3361dd41b4a.bin [ file ]
Source                        php-fpm
Source Path                   php-fpm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-153.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.2.5-300.fc23.x86_64+debug #1 SMP
                              Tue Oct 27 04:11:34 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-11-08 04:52:49 YEKT
Last Seen                     2015-11-08 04:52:49 YEKT
Local ID                      ddbcaa1f-efd9-4d39-bfd7-e959b652998b

Raw Audit Messages
type=AVC msg=audit(1446940369.134:1955): avc:  denied  { setattr } for  pid=14856 comm="php-fpm" name="dbc5ef578a127edd6dc0e3361dd41b4a.bin" dev="sdb1" ino=64788088 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_user_content_t:s0 tclass=file permissive=1

Hash: php-fpm,httpd_t,httpd_user_content_t,file,setattr

Version-Release number of selected component:

Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.2.5-300.fc23.x86_64+debug
type:           libreport

Potential duplicate: bug 1238995
Comment 1 Miroslav Grepl 2015-11-09 02:28:06 EST

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

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