[Python-Dev] Summary of Python tracker Issues

2011-06-10 Thread Python tracker
ACTIVITY SUMMARY (2011-06-03 - 2011-06-10) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open2826 (+11) closed 21268 (+47) total 24094 (+58) Open issues

Re: [Python-Dev] cpython: Remove some extraneous parentheses and swap the comparison order to

2011-06-10 Thread Guido van Rossum
On Wed, Jun 8, 2011 at 8:12 AM, Nick Coghlan ncogh...@gmail.com wrote: On Wed, Jun 8, 2011 at 7:35 AM, David Malcolm dmalc...@redhat.com wrote: After ~12 years of doing this, it comes naturally.  I appreciate that this may come across as weird though :) I actually thought Brett's rationale in

[Python-Dev] PEP 3101 implementation vs. documentation

2011-06-10 Thread Ben Wolfson
Hello, I'm writing because discussion in a bug report I submitted (http://bugs.python.org/issue12014) has suggested that, insofar as at least part of the issue revolves around the interpretation of PEP 3101, that aspect belonged on python-dev. In particular, I was told that the PEP, not the

[Python-Dev] Python jails

2011-06-10 Thread Sam Edwards
Hello! This is my first posting to the python-dev list, so please forgive me if I violate any unspoken etiquette here. :) I was looking at Python 2.x's f_restricted frame flag (or, rather, the numerous ways around it) and noticed that most (all?) of the attacks to escape restricted execution

Re: [Python-Dev] Python jails

2011-06-10 Thread R. David Murray
On Fri, 10 Jun 2011 18:23:47 -0600, Sam Edwards sam.edwa...@colorado.edu wrote: Hello! This is my first posting to the python-dev list, so please forgive me if I violate any unspoken etiquette here. :) Well, hopefully we won't bite, though of course I can't promise anything for anyone else :)

Re: [Python-Dev] Python jails

2011-06-10 Thread Guido van Rossum
Hi Sam, Have you seen this? http://tav.espians.com/paving-the-way-to-securing-the-python-interpreter.html It might relate a similar idea. There were a few iterations of Tav's approach. --Guido On Fri, Jun 10, 2011 at 5:23 PM, Sam Edwards sam.edwa...@colorado.edu wrote: Hello! This is my first

Re: [Python-Dev] Python jails

2011-06-10 Thread P.J. Eby
At 06:23 PM 6/10/2011 -0600, Sam Edwards wrote: I have a couple remaining issues that I haven't quite sussed out: [long list of questions deleted] You might be able to answer some of them by looking at this project: http://pypi.python.org/pypi/RestrictedPython Which implements the

Re: [Python-Dev] Python jails

2011-06-10 Thread Sam Edwards
All, Thanks for the quick responses! I've skimmed the pysandbox code yesterday. I think Victor has the right idea with relying on a whitelist, as well as limiting execution time. The fact that untrusted code can still execute memory exhaustion attacks is the only thing that still worries me: