Bug 872858 - SELinux is preventing /usr/sbin/php-fpm from 'getattr' accesses on the file /var/lib/php/session/sess_56g1mr6n0pp1n63rfhss14l6n0.
Summary: SELinux is preventing /usr/sbin/php-fpm from 'getattr' accesses on the file /...
Keywords:
Status: CLOSED DUPLICATE of bug 872839
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:73a3bbf5468e72b89609add707f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-03 20:40 UTC by Mikhail
Modified: 2012-11-05 08:11 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-05 08:11:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-11-03 20:40 UTC, Mikhail
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-11-03 20:40 UTC, Mikhail
no flags Details

Description Mikhail 2012-11-03 20:40:22 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.5-2.fc18.i686.PAE

description:
:SELinux is preventing /usr/sbin/php-fpm from 'getattr' accesses on the file /var/lib/php/session/sess_56g1mr6n0pp1n63rfhss14l6n0.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that php-fpm should be allowed getattr access on the sess_56g1mr6n0pp1n63rfhss14l6n0 file 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 php-fpm /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:phpfpm_t:s0
:Target Context                system_u:object_r:httpd_var_run_t:s0
:Target Objects                /var/lib/php/session/sess_56g1mr6n0pp1n63rfhss14l6
:                              n0 [ file ]
:Source                        php-fpm
:Source Path                   /usr/sbin/php-fpm
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           php-fpm-5.4.8-1.fc18.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.11.1-46.fc18.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.5-2.fc18.i686.PAE #1 SMP Thu
:                              Nov 1 00:52:47 UTC 2012 i686 i686
:Alert Count                   2
:First Seen                    2012-11-04 01:30:33 YEKT
:Last Seen                     2012-11-04 01:37:20 YEKT
:Local ID                      3453ce61-d7c2-4653-a00a-b6a3109b9c3d
:
:Raw Audit Messages
:type=AVC msg=audit(1351971440.105:617): avc:  denied  { getattr } for  pid=2447 comm="php-fpm" path="/var/lib/php/session/sess_56g1mr6n0pp1n63rfhss14l6n0" dev="sda1" ino=792109 scontext=system_u:system_r:phpfpm_t:s0 tcontext=system_u:object_r:httpd_var_run_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1351971440.105:617): arch=i386 syscall=fstat64 success=yes exit=0 a0=7 a1=bfab2460 a2=488d0000 a3=b442f694 items=0 ppid=2442 pid=2447 auid=4294967295 uid=991 gid=988 euid=991 suid=991 fsuid=991 egid=988 sgid=988 fsgid=988 tty=(none) ses=4294967295 comm=php-fpm exe=/usr/sbin/php-fpm subj=system_u:system_r:phpfpm_t:s0 key=(null)
:
:Hash: php-fpm,phpfpm_t,httpd_var_run_t,file,getattr
:
:audit2allow
:
:#============= phpfpm_t ==============
:allow phpfpm_t httpd_var_run_t:file getattr;
:
:audit2allow -R
:
:#============= phpfpm_t ==============
:allow phpfpm_t httpd_var_run_t:file getattr;
:

Comment 1 Mikhail 2012-11-03 20:40:25 UTC
Created attachment 637654 [details]
File: type

Comment 2 Mikhail 2012-11-03 20:40:27 UTC
Created attachment 637655 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-11-05 08:11:21 UTC

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


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