securing a python execution environment...
Laszlo Nagy
gandalf at shopzeus.com
Mon Nov 19 08:39:03 EST 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