[PHP-BUG] Bug #71223 [NEW]: Unix socket permissions are not always correct
[email protected] ("gmoniker at gmail dot com")
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <[email protected]> |
From: gmoniker at gmail dot com Operating system: PHP version: 5.6.16 Package: FPM related Bug Type: Bug Bug description:Unix socket permissions are not always correct Description: ------------ The listen.mode setting of a worker pool allows to set the basic Unix permission bits. If you set it to 440 it should have rw-rw---- for example. The way it is set up in fpm_unix.c is to set an inverted umask and then create the socket with that umask. This works on filesystems with only basic permissions. However if you install on a filesystem with Posix ACL, then the default mask for the parent directory may interfere with this, and the socket file gets the wrong permission bits, possibly missing a necessary write permission. -- Edit bug report at https://bugs.php.net/bug.php?id=71223&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71223&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71223&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71223&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71223&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71223&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71223&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71223&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71223&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71223&r=support Expected behavior: https://bugs.php.net/fix.php?id=71223&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71223&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71223&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71223&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71223&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71223&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71223&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71223&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71223&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71223&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71223&r=mysqlcfg