Newbie query about secure embedded python

Paul Rubin http
Tue Jan 2 10:37:19 EST 2007


Richard Dwan <richardmartindwan at yahoo.co.uk> writes:
> My question is; is there a secure python interpreter
> that prevents malicious code from using C/C++ modules
> or built-in functions from causing damage to a users
> system.

You mean like a java sandbox?  There used to be one in Python (the
rexec/Bastion modules) but they were removed for security reasons
(i.e. they weren't secure and there was no way to fix the holes).
There seems to currently be no really reliable way to do what you're
asking.  Your best bet may be either a small JVM, or a very limited
special purpose language that you could implement in Python.



More information about the Python-list mailing list