Steve Dower <steve.do...@python.org> added the comment:

To clarify my position on this (as the PEP author):

* audit hooks added *after* initialization (including via the Python API) are 
not intended for security, but for logging/debugging, and so bypasses are not 
considered security issues
* audit hooks added *before* Python is initialized should not be able to be 
bypassed *without* prior events indicating that a bypass is going to occur. 
Ways of bypassing/removing them without prior indicators should be reported as 
security issues

And note that all compile()d, imported or exec()d code should have been 
collected, which means any security bypass has to happen without arbitrary code 
execution.

These hooks are only one tool necessary to create a more secured environment, 
not the whole thing. (And note that I said "more secured" not "secure", because 
it's only as secure as you make it. The relative descriptor is deliberate.)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43438>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to