470,616 Members | 2,208 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,616 developers. It's quick & easy.

Is there a PHP-like safe mode?

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

--
Martin Schütte
Jul 18 '05 #1
1 1602
**** 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
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by lawrence | last post: by
8 posts views Thread by Marcel | last post: by
1 post views Thread by jdurden | last post: by
1 post views Thread by Kesavan | last post: by
reply views Thread by Benjamin Grieshaber | last post: by
9 posts views Thread by mekalai82 | last post: by
4 posts views Thread by mechphisto | last post: by
1 post views Thread by gnawz | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.