Req #18407 [Csd->Wfx]: Request of new configuration directive for safe_mode
| From: | nikic@php.net | Date: | Sat, 22 Sep 2012 09:21:27 +0000 |
| Subject: | Req #18407 [Csd->Wfx]: Request of new configuration directive for safe_mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173633@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=18407&edit=1
ID: 18407
Updated by: nikic@php.net
Reported by: msteinacher at websource dot ch
Summary: Request of new configuration directive for safe_mode
-Status: Closed
+Status: Wont fix
Type: Feature/Change Request
Package: *General Issues
Operating System: Linux
PHP Version: 4.2.1
Assigned To: nikic
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2012-09-22 09:18:58] nikic@php.net
Closing this as safe mode is no longer supported as of PHP 5.4
------------------------------------------------------------------------
[2002-07-18 05:54:21] msteinacher at websource dot ch
I suggest to add a new configuration directive for safe mode to solve the common problem, that a
user can't change uploaded files because they have the UID of the user owning the webserver
process and not the UID of the user owning the script.
I know that I could turn safe_mode off and use only open_basedir instead. Another
'solution' sould be to use safe_mode_gid and put the webserver-user in the same group as
the script-owners. But I don't want to do this.
Thus my suggestion to add a new directive that could for example be called
'safe_mode_allow_proc_uid'. If this is set to TRUE then PHP should allow the access to
files which are owned by the user that owns the script (as it does now) _OR_ files which are owned
by the user that owns the webserver process.
In other words: Try to implement the patch at http://www.zend.com/lists/php-dev/200201/msg01149.html
with the option to enable or disable it.
Thanks for listening.
Marco
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=18407&edit=1