php-src/sapi
gooh fb49f137ec Fix #72575: using --allow-to-run-as-root should ignore missing user
directive

Trying to start PHP-FPM with the --allow-to-run-as-root flag will not
work when the user directive is not given in the FPM worker pool
configuration. Parsing the config will fail. Consequently, FPM cannot
start.

The check is in place to prevent FPM from getting started with root
privileges by accident. Prior to #61295 the check would also prevent
any non-root user to start PHP-FPM without a user directive present.

This patch adds an additional check to the config parser, checking for
the --allow-to-run-as-root flag to be present. If so, parsing will no
longer abort for root users even if the user directive is missing.

I will also update the PHP docs since they still state the user
directive is a mandatory setting which it is not since #61295.
2016-07-12 10:36:17 +02:00
..
aolserver Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
apache Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
apache2filter Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
apache2handler Simplify code per Anatol. 2016-01-11 21:36:55 +01:00
apache_hooks Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
caudium Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
cgi Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
cli Fixed bug #69953 2016-03-03 19:22:38 +01:00
continuity Happy new year (Update copyright to 2016) 2016-01-03 01:44:37 +02:00
embed Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
fpm Fix #72575: using --allow-to-run-as-root should ignore missing user 2016-07-12 10:36:17 +02:00
isapi Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
litespeed Remove needless zeroing of anonymously mmap'd memory 2016-07-11 14:56:17 +02:00
milter Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
nsapi Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
phpdbg Fix typo in phpdbg help. 2016-05-25 12:47:35 -05:00
phttpd Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
pi3web Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
roxen Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
tests Fix #69487: SAPI may truncate POST data 2015-08-11 01:32:13 +02:00
thttpd Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
tux Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
webjames Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00