Is there a PHP-like safe mode?

Aquila Deus aquila_deus at hotmail.com
Thu Jul 15 21:51:05 EDT 2004


**** Post for FREE via your newsreader at post.usenet.com ****

On 15 Jul 2004 16:01:15 GMT, Martin Schuette wrote:

> Hello,
> is there some way to use Python similar to PHP's safe-mode, i.e.
> restricting the file access to a certain directory and disabling
> potentially dangerous functions like os.system()?

This: http://www.python.org/dev/doc/devel/lib/restricted.html

But... "In Python 2.3 these modules have been disabled due to various known
and not readily fixable security holes."


hmmmmm...

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 *** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
                      http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



More information about the Python-list mailing list