Problem/Motivation
In #2232051-24: Unnessessary chmod during config write we minimize amount of chmod() operations for config writes and was pointed in comments #2 and #3 it's for "historical reasons" as changing owner is unpredictable when Linux using ACLs
Steps to reproduce
In #2232051-3: Unnessessary chmod during config write and previous comment
Proposed resolution
- Using umask() and possible some PHP wrapper for ALCs will allow broader access permissions managment
- discover how to use umask() one per serving request as #2232051-24: Unnessessary chmod during config write suggests and get rid of chmod() after each write as all writes should be controlled throw filesystem streams or kinda that level (stream context maybe)
Remaining tasks
- research, centralize writes
- setting umask() per request
User interface changes
No
API changes
TBD
Data model changes
No
Release notes snippet
No
Comments
Comment #2
andypostAs a follow-up task it also makes second question about ACL support for files
it depends on
php-fpmbuild flag to use--with-fpm-aclSo PHP 8.0+ has full support of acl