diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-05-03 13:24:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-03 13:24:05 (GMT) |
commit | 8ab272f0f3dd7da44f8e21d2a5a39c2ab39490d6 (patch) | |
tree | 29a8e6da76f11c3dba0ace178b7b4372d89a27d6 /Misc | |
parent | 10665ac37313560fe87460cf4a5c26677049bf62 (diff) | |
download | cpython-8ab272f0f3dd7da44f8e21d2a5a39c2ab39490d6.zip cpython-8ab272f0f3dd7da44f8e21d2a5a39c2ab39490d6.tar.gz cpython-8ab272f0f3dd7da44f8e21d2a5a39c2ab39490d6.tar.bz2 |
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>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Security/2021-01-09-17-07-36.bpo-42800._dtZvW.rst | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -696,6 +696,7 @@ Kevan Heydon Wouter van Heyst Kelsey Hightower Jason Hildebrand +Ryan Hileman Aaron Hill Joel Hillacre Richie Hindle diff --git a/Misc/NEWS.d/next/Security/2021-01-09-17-07-36.bpo-42800._dtZvW.rst b/Misc/NEWS.d/next/Security/2021-01-09-17-07-36.bpo-42800._dtZvW.rst new file mode 100644 index 0000000..d01c0c3 --- /dev/null +++ b/Misc/NEWS.d/next/Security/2021-01-09-17-07-36.bpo-42800._dtZvW.rst @@ -0,0 +1 @@ +Audit hooks are now fired for frame.f_code, traceback.tb_frame, and generator code/frame attribute access. |