Restricted Execution of untrusted code

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Fri Oct 31 20:44:24 EDT 2008


In message
<b4fd3248-a78a-4310-817f-dabbe6125d74 at m3g2000hsc.googlegroups.com>,
Emanuele D'Arrigo wrote:

> I noticed that this issue has been discussed in this newsgroup
> periodically over the years and I seem to understand that -
> comprehensive- safe/restricted execution of untrusted code in python

I think the most reliable solution is to take advantage of a level in the
system that already has to provide protection against malicious code: use a
chroot jail. Or run a complete virtualized machine with its own OS
installation. Then the code is free to do what it wants, it simply won't
see anything sensitive that it could compromise.



More information about the Python-list mailing list