[Python-Dev] Restricted interpreter (original) (raw)

Gustavo Niemeyer niemeyer@conectiva.com
Fri, 8 Nov 2002 18:04:56 -0200


This weekend I'm going to work on a "restricted" python interpreter for http://acm.uva.es/problemset/. That site offers online programming contests, including an online judge to check algorithm implementations for hundreds of problems. I belive it'd be nice for the Python community to have access to something like that.

This interpreter should have limited functionality so that malicious users won't be able to access the filesystem, sockets, and other "dangerous" functionality.

I'm not sure if that will be useful for the stock Python interpreter, as its application is very specific, but at least it could be a nice starting point for similar projects.

I've included here a quick list of changes to the python interpreter to achieve that. Do you remember about any other possible problems?

-- Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5 60E2 2253 B29A 6664 3A0C ]