]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42800: Add audit events for f_code and tb_frame (GH-24182)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 3 May 2021 13:24:05 +0000 (06:24 -0700)
committerGitHub <noreply@github.com>
Mon, 3 May 2021 13:24:05 +0000 (06:24 -0700)
commit8ab272f0f3dd7da44f8e21d2a5a39c2ab39490d6
tree29a8e6da76f11c3dba0ace178b7b4372d89a27d6
parent10665ac37313560fe87460cf4a5c26677049bf62
bpo-42800: Add audit events 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
(cherry picked from commit bb2f3ff7a8f0c3565ccc1946dba7e09a3f7dc209)

Co-authored-by: Steve Dower <steve.dower@python.org>
Doc/library/audit_events.rst
Doc/library/stdtypes.rst
Doc/reference/datamodel.rst
Misc/ACKS
Misc/NEWS.d/next/Security/2021-01-09-17-07-36.bpo-42800._dtZvW.rst [new file with mode: 0644]
Objects/frameobject.c
Objects/genobject.c
Python/traceback.c