On Sun, 2006-04-09 at 18:06 -0700, Neal Norwitz wrote:
> On 4/9/06, Giovanni Bajo <[EMAIL PROTECTED]> wrote:
> > Neal Norwitz <[EMAIL PROTECTED]> wrote:
<snip>
> >>> r.setrlimit(r.RLIMIT_CPU, (5, 5))
> >>> 10000000000000000000**10000000000000000000
> Cputime limit exceeded
> 
> To defeat this, you can do:  signal.signal(signal.SIGXCPU, signal.SIG_IGN)
> Of course, you would presumably prevent access to the signal module. 
> You could then install your own signal handler and handle this how you
> want
> .

Instead of worrying about how to appropriately cripple CPython to
provide a secure sandbox, perhaps we should be reaching towards PyPy for
this answer?  

Cheers - Adam


_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to