Re: Safe Python Execution

2006-02-21 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > > Is anyone aware of a more functional but still untrusted python? Given that you've looked into Zope 3's security/proxy mechanisms, have you also looked at mxProxy? http://www.egenix.com/files/python/mxProxy.html Paul -- http://mail.python.org/mailman/listinfo/pytho

Re: Safe Python Execution

2006-02-20 Thread [EMAIL PROTECTED]
It looks like untrustedinterpreter has at least two major obstacles to executing reasonably complex code: augmented assignment is not supported: a.b = 'foo' is translated into __getattr__(a,b) = 'foo' Second, this is mysterious, but nevertheless... """This form of restricted Python assume

Re: Safe Python Execution

2006-02-17 Thread Jean-Paul Calderone
On Thu, 16 Feb 2006 07:59:03 -0800, Alex Martelli <[EMAIL PROTECTED]> wrote: >Graham <[EMAIL PROTECTED]> wrote: > >> I've been messing around with trying to get a small sandbox like >> environment where i could execute python code in a "safe" way. >> Basically what the old restricted execution modu

Re: Safe Python Execution

2006-02-16 Thread gene tani
Jean-Paul Calderone wrote: > On Thu, 16 Feb 2006 07:59:03 -0800, Alex Martelli <[EMAIL PROTECTED]> wrote: > >Graham <[EMAIL PROTECTED]> wrote: > > > >> I've been messing around with trying to get a small sandbox like > >> environment where i could execute python code in a "safe" way. > >> Basicall

Re: Safe Python Execution

2006-02-16 Thread Alex Martelli
Graham <[EMAIL PROTECTED]> wrote: > I've been messing around with trying to get a small sandbox like > environment where i could execute python code in a "safe" way. > Basically what the old restricted execution module attempted to do. > I've written a small amount of code to get custom interprete

Re: Safe Python Execution

2006-02-15 Thread Paul Rubin
"Graham" <[EMAIL PROTECTED]> writes: > I've been messing around with trying to get a small sandbox like > environment where i could execute python code in a "safe" way. > Basically what the old restricted execution module attempted to do. The old rexec module was removed for the precise reason tha

Re: Safe Python Execution

2006-02-15 Thread Steven Bethard
Graham wrote: > The way i'm controlling functionality is with some games and exec, so > if 'code' was the text code you wanted to execute i run: > > exec code in {'__builtins__':None"} > > obviously this doesn't give you much to play with, but it does remove > file access and importing as far as

Re: Safe Python Execution

2006-02-15 Thread Devan L
Graham wrote: > I've been messing around with trying to get a small sandbox like > environment where i could execute python code in a "safe" way. > Basically what the old restricted execution module attempted to do. > I've written a small amount of code to get custom interpreter running, > but i'm

Safe Python Execution

2006-02-15 Thread Graham
I've been messing around with trying to get a small sandbox like environment where i could execute python code in a "safe" way. Basically what the old restricted execution module attempted to do. I've written a small amount of code to get custom interpreter running, but i'm not really sure if its s