Re: possible safe mode bug with opendir() ?

From: Date: Tue, 13 Nov 2001 00:27:00 +0000
Subject: Re: possible safe mode bug with opendir() ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-74341@lists.php.net to get a copy of this message
Yasuo Ohgaki wrote:
operator@superprivate.com wrote:
It happens on our system that there will never be any files owned by user A under a directory owned by user B. But even if there were, I think safe mode should disallow this type of filesystem reading.
Under UNIX like systems, /tmp is world writable and everyone on the system can open dir/wirte/read files, but it's possible to secure files/directory under /tmp. I think you can apply the same. GID support also helps to allow opening files certain group. Is it not enough for your security needs?
BTW, if you get rid of read permission for a directory, directory listing is not possible under UNIX like systems. You can still read/write files with proper permission. (unlink/create files with proper permission also. You can get rid of write permission for directory, too.) Just in case, you didn't know about it :) php.ini entries like safe_mode_opendir_sid safe_mode_opendir_gid will help to improve security still. I just don't need this kind of feature, but others may need it. -- Yasuo Ohgaki _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

« previous php.general (#74341) next »