Python sys.path security risk

Imported from <a href="http://trac.sagemath.org/sage_trac/ticket/13579">trac #13579</a>.

All Sage library patches folded

Reported by: vbraun

Component: doctest

CC: jdemeyer

Report Upstream: Reported upstream. No feedback yet.

Authors: Jeroen Demeyer, Volker Braun

Dependencies: 

Work issues: 

Reviewers: Volker Braun, Jeroen Demeyer, David Roe

Merged in: sage-5.4.rc2

Attachments: <ol><li><a href="http://trac.sagemath.org/sage_trac/attachment/ticket/13579/13579_secure_tmp.patch">13579_secure_tmp.patch: </a> by jdemeyer at 20121008T09:19:40</li><li><a href="http://trac.sagemath.org/sage_trac/attachment/ticket/13579/trac_13579_fix_test_executable.patch">trac_13579_fix_test_executable.patch: Updated patch</a> by vbraun at 20121010T12:34:08</li><li><a href="http://trac.sagemath.org/sage_trac/attachment/ticket/13579/13579_review.patch">13579_review.patch: </a> by jdemeyer at 20121012T17:00:22</li><li><a href="http://trac.sagemath.org/sage_trac/attachment/ticket/13579/sys_path_security.patch">sys_path_security.patch: Patch added to the Python sources</a> by jdemeyer at 20121015T20:45:52</li><li><a href="http://trac.sagemath.org/sage_trac/attachment/ticket/13579/13579_scripts.patch">13579_scripts.patch: </a> by jdemeyer at 20121016T15:43:18</li><li><a href="http://trac.sagemath.org/sage_trac/attachment/ticket/13579/13579_test_permissions.patch">13579_test_permissions.patch: </a> by jdemeyer at 20121017T07:11:18</li><li><a href="http://trac.sagemath.org/sage_trac/attachment/ticket/13579/13579_sagelib.patch">13579_sagelib.patch: All Sage library patches folded</a> by jdemeyer at 20121018T12:13:11</li></ol>