Follow-up Comment #3, bug #13048 (project wesnoth):
I was thinking we could work around this by wrapping whitelisted modules in
another module that sets __all__, but alas there are further loopholes:
>>> import Queue
>>> Queue.Queue.task_done.func_globals['__builtins__']['__import__']('os')
<module 'os' from '/usr/lib/python2.5/os.pyc'>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?13048>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs