[Python-3000] Will we have a true restricted exec environmentfor python-3000? (original) (raw)
Giovanni Bajo rasky at develer.com
Mon Apr 10 02:35:44 CEST 2006
- Previous message: [Python-3000] Will we have a true restricted exec environment for python-3000?
- Next message: [Python-3000] Will we have a true restricted exec environmentfor python-3000?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Neal Norwitz <nnorwitz at gmail.com> wrote:
#3 is easy to do a simple, naive implementation. I don't know what your needs are. If you just want to say "exit this script if it ran more than N seconds" you can just modify the eval loop (*). But I suspect there are many more features that would be required and it's not so simple.
Yeah. I think of rexec as a way to safely eval expressions / exec statements provided by users without the risk of DOSing the machine executing them. And your solution doesn't handle things like 10000000000000000000**10000000000000000000.
Giovanni Bajo
- Previous message: [Python-3000] Will we have a true restricted exec environment for python-3000?
- Next message: [Python-3000] Will we have a true restricted exec environmentfor python-3000?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]