Re: possible safe mode bug with opendir() ?
| From: | operator at superprivate dot com | Date: | Mon, 12 Nov 2001 05:33:42 +0000 |
| Subject: | Re: possible safe mode bug with opendir() ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-74221@lists.php.net to get a copy of this message | ||
But where user "fred" can opendir() a directory owned by user "mary"
(underneath the open_basedir), that action doesn't even pass a UID check
if the UIDs are supposed to match in safe mode in order for the action to
be allowed.
How would an optional GID check help?
A.
> > When in "safe mode" shouldn't PHP check to see if the directory that is
> > about to be opened with a opendir() function has the same UID as the PHP
> > script itself, and fail if the UIDs do not match?
>
>
> From 4.1.0, optional GID check is available.
>
> Take a look at lastest implementation see if you still have issues.
>
> http://snaps.php.net/
>
> --
> Yasuo Ohgaki
>