Is there a PHP-like safe mode?

M

Martin Schuette

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()?
 
A

Aquila Deus

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

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
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,662
Latest member
salsusa

Latest Threads

Top