Issue 1546203: bcannon secure branch issues (original) (raw)

Referring to http://svn.python.org/view/python/ branches/bcannon-sandboxing/ securing_python.txt?view=markup but there doesn't seem to be a group/category for feedback on branches.

The sys module should not be shared between interpreters, even though it is an extension module.
(If need be, each sys module can be a proxy that itself imports from the "real" sys.) sys should probably also be filled explicitly on creation, like builtins. (And the same for os, os.path?)

Note that this will affect which sys.attributes should be available (perhaps read-only) or hidden by default -

For specific examples: