Skip to content

Commit 770fcda

Browse files
committed
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: Fix bug #67060: use default mode of 660
2 parents 3fbacdc + 35ceea9 commit 770fcda

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ PHP NEWS
5959

6060
- FPM:
6161
. Fixed bug #66482 (unknown entry 'priority' in php-fpm.conf).
62+
. Fixed bug #67060 (sapi/fpm: possible privilege escalation due to insecure
63+
default configuration) (CVE-2014-0185). (Stas)
6264

6365
- JSON:
6466
. Fixed bug #66021 (Blank line inside empty array/object when

sapi/fpm/fpm/fpm_unix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int fpm_unix_resolve_socket_premissions(struct fpm_worker_pool_s *wp) /* {{{ */
3535
/* uninitialized */
3636
wp->socket_uid = -1;
3737
wp->socket_gid = -1;
38-
wp->socket_mode = 0666;
38+
wp->socket_mode = 0660;
3939

4040
if (!c) {
4141
return 0;

sapi/fpm/php-fpm.conf.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ listen = 127.0.0.1:9000
166166
; permissions must be set in order to allow connections from a web server. Many
167167
; BSD-derived systems allow connections regardless of permissions.
168168
; Default Values: user and group are set as the running user
169-
; mode is set to 0666
169+
; mode is set to 0660
170170
;listen.owner = @php_fpm_user@
171171
;listen.group = @php_fpm_group@
172-
;listen.mode = 0666
172+
;listen.mode = 0660
173173

174174
; List of ipv4 addresses of FastCGI clients which are allowed to connect.
175175
; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original

0 commit comments

Comments
 (0)