Sandboxing Python [was Re: New user's initial thoughts / criticisms of Python]

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sat Nov 9 10:25:49 EST 2013


On Sun, 10 Nov 2013 01:27:11 +1100, Chris Angelico wrote:

> I was trying to sandbox CPython and run untrusted scripts while stopping
> them from accessing the OS or file system. It's basically impossible

PyPy is supposed to come with a proper sandbox. Although even in that 
case, I think it is recommended to use a chroot jail to lock access down 
to some subset of the file system.


-- 
Steven



More information about the Python-list mailing list