: Bug #72357 :: Pool logs created with master owner:group
| Bug #72357 | Pool logs created with master owner:group | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2016-06-07 17:23 UTC | Modified: | 2017-04-10 19:06 UTC |
|
||||||||||
| From: | anrdaemon at yandex dot ru | Assigned: | bukka (profile) | |||||||||||
| Status: | Assigned | Package: | FPM related | |||||||||||
| PHP Version: | 5.6.22 | OS: | Linux | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2016-06-07 17:23 UTC] anrdaemon at yandex dot ru
Description: ------------ When PHP-FPM default configuration is used (master running as root, spawning setuid'd childs), the childs' logs created with master's owner:group, which is extremely inconvenient. https://bugs.php.net/bug.php?id=69662 Test script: --------------- Install PHP-FPM SAPI. Create a new user named i.e. "php-fpm". Create a new FPM pool with [php-fpm] user = $pool listen = <whatever suits your server> access.log = "/home/$pool/php-access.log" php_admin_value[error_log] = "/home/$pool/php-error.log" Expected result: ---------------- Logs "/home/php-fpm/php-access.log" and "/home/php-fpm/php-error.log" created with "php-fpm" owner. Actual result: -------------- Both logs will be created with root:root owner, or worse, if directory has SGID bit set, they will be created with root:whatever but with 0600 permissions.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2017-04-10 19:06 UTC] bukka@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: bukka