<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/rexec.py, branch 2.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/rexec.py?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/rexec.py?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-01-07T23:01:21Z</updated>
<entry>
<title>Sabotage rexec.py and Bastion.py.  These are not secure in Python 2.2</title>
<updated>2003-01-07T23:01:21Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2003-01-07T23:01:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ef18213f1242f8da5da67529050a5f7db9386caa'/>
<id>urn:sha1:ef18213f1242f8da5da67529050a5f7db9386caa</id>
<content type='text'>
or 2.3.
</content>
</entry>
<entry>
<title>Add more names to ok_sys_names, including hexversion; otherwise the</title>
<updated>2002-11-19T19:22:25Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-11-19T19:22:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=954b3f75c7d799b61da8426a2d94e819a01a182b'/>
<id>urn:sha1:954b3f75c7d799b61da8426a2d94e819a01a182b</id>
<content type='text'>
sre module and everything using it (e.g. re and glob) won't work.
</content>
</entry>
<entry>
<title>Backport (the relevant part of) rexec.py 1.41.</title>
<updated>2002-09-15T06:08:27Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-09-15T06:08:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d412a12fb76234d22e694c09812b8639fd14c7a9'/>
<id>urn:sha1:d412a12fb76234d22e694c09812b8639fd14c7a9</id>
<content type='text'>
Address SF bug #577530: del __builtins__ breaks out of rexec

Using the suggestion there: add_module() forces __builtin__ back; this
fixes r_exec, r_eval, r_execfile.

This does not mean that rexec is now considered safe!  But for those
willing to take the risk, it's safer than before.  (Note that a safety
analysis of the code module would be wise if you plan to use the
interactive console for real -- I've only ever used it to play with
restricted mode.)
</content>
</entry>
<entry>
<title>Backport to 2.2.x:</title>
<updated>2002-05-31T21:17:53Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-05-31T21:17:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6ad0a79c0705df9eb2a3ddfce187f293497d2ba0'/>
<id>urn:sha1:6ad0a79c0705df9eb2a3ddfce187f293497d2ba0</id>
<content type='text'>
SF bug 533625 (Armin Rigo). rexec: potential security hole

If a rexec instance allows writing in the current directory (a common
thing to do), there's a way to execute bogus bytecode.  Fix this by
not allowing imports from .pyc files (in a way that allows a site to
configure things so that .pyc files *are* allowed, if writing is not
allowed).
</content>
</entry>
<entry>
<title>Backport change to 1.35 adding doc strings</title>
<updated>2002-05-29T23:44:50Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2002-05-29T23:44:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7b6fef95f301fe46737200758103901e34540653'/>
<id>urn:sha1:7b6fef95f301fe46737200758103901e34540653</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Ignore execfile() return value; reported by Neal Norwitz.</title>
<updated>2001-10-13T18:34:42Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-10-13T18:34:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f902296a1889f9453ca0080525b8ffc1e21ed997'/>
<id>urn:sha1:f902296a1889f9453ca0080525b8ffc1e21ed997</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Now that file objects are subclassable, you can get at the file constructor</title>
<updated>2001-09-13T21:01:29Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-13T21:01:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8fa45677c1833cc0d4ddaa57417c01ee8297eba8'/>
<id>urn:sha1:8fa45677c1833cc0d4ddaa57417c01ee8297eba8</id>
<content type='text'>
just by doing type(f) where f is any file object.  This left a hole in
restricted execution mode that rexec.py can't plug by itself (although it
can plug part of it; the rest is plugged in fileobject.c now).
</content>
</entry>
<entry>
<title>Remove redundant import (PyChecker).</title>
<updated>2001-08-13T15:58:26Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-08-13T15:58:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=97dbec97bc18b88e0380f683009f6827f836c630'/>
<id>urn:sha1:97dbec97bc18b88e0380f683009f6827f836c630</id>
<content type='text'>
Update greeting message to avoid the long copyright notice.
</content>
</entry>
<entry>
<title>Remove make_re() function; this is no longer needed since _sre and pcre</title>
<updated>2001-08-07T19:49:15Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-08-07T19:49:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=56b5fdd295d7e4be64036529cbbb6ffd252ac6bc'/>
<id>urn:sha1:56b5fdd295d7e4be64036529cbbb6ffd252ac6bc</id>
<content type='text'>
are now allowed by ok_builtin_modules.  This effectively backs out
revision 1.26.

This closes SF bug #448546.
</content>
</entry>
<entry>
<title>Add sha and _sre to the list of allowed built-in modules.</title>
<updated>2001-06-22T18:19:16Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-06-22T18:19:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a2d848e99c3369d7a7ca7a429bd7ac258411fb63'/>
<id>urn:sha1:a2d848e99c3369d7a7ca7a429bd7ac258411fb63</id>
<content type='text'>
</content>
</entry>
</feed>
