securing a python execution environment...

Laszlo Nagy gandalf at shopzeus.com
Mon Nov 19 14:39:03 CET 2007


Alberto Berti wrote:
> maybe using import hooks?
>
> http://www.python.org/dev/peps/pep-0302/
>
>   
I don't think so. Anyone can hook the import statement. And this is just 
one reason. Some objects are built in. For example, file(). How can you 
restrict file creation? I believe that there is no safe restricted 
environment, implemented in pure python.

Best,


   Laszlo




More information about the Python-list mailing list