]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42800: add audit hooks for f_code and tb_frame (GH-24182)
authorRyan Hileman <lunixbochs@gmail.com>
Thu, 29 Apr 2021 23:15:55 +0000 (16:15 -0700)
committerGitHub <noreply@github.com>
Thu, 29 Apr 2021 23:15:55 +0000 (00:15 +0100)
commit9a2c2a9ec3140b6c54c9ef9d994311f114128ee3
treefbc87fa594de1ab3f8151dc74786add7eac3e1b3
parent088a15c49d99ecb4c3bef93f8f40dd513c6cae3b
bpo-42800: add audit hooks for f_code and tb_frame (GH-24182)

Accessing the following attributes will now fire PEP 578 style audit hooks as ("object.__getattr__", obj, name):
* PyTracebackObject: tb_frame
* PyFrameObject: f_code
* PyGenObject: gi_code, gi_frame
* PyCoroObject: cr_code, cr_frame
* PyAsyncGenObject: ag_code, ag_frame
Add an AUDIT_READ attribute flag aliased to READ_RESTRICTED.
Update obsolete flag documentation.
Doc/extending/newtypes.rst
Doc/library/audit_events.rst
Doc/library/stdtypes.rst
Doc/reference/datamodel.rst
Include/structmember.h
Misc/ACKS
Misc/NEWS.d/next/Security/2021-01-09-17-07-36.bpo-42800._dtZvW.rst [new file with mode: 0644]
Objects/descrobject.c
Objects/frameobject.c
Objects/genobject.c
Python/traceback.c