cpython/Modules/_ctypes
Robin Jadoul 2666a06d33
GH-115322: Add missing audit hooks (GH-115624)
Add extra audit hooks to catch C function calling from ctypes,
reading/writing files through readline and executing external
programs through _posixsubprocess.

* Make audit-tests for open pass when readline.append_history_file is unavailable
* Less direct testing of _posixsubprocess for audit hooks
* Also remove the audit hook from call_cdeclfunction now that _ctypes_callproc does it instead.
* reword the NEWS entry.
* mention readline in NEWS
* add versionchanged markers
* fix audit_events.rst versionadded
* doc lint

---------

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2025-04-13 21:46:20 +00:00
..
clinic gh-131336: fix thread safety for ctypes functions (#132232) 2025-04-09 18:18:40 +00:00
_ctypes.c gh-131336: fix thread safety for ctypes functions (#132232) 2025-04-09 18:18:40 +00:00
_ctypes_test.c gh-125206: Bug in ctypes with old libffi is fixed (#125322) 2024-10-15 16:17:10 +00:00
_ctypes_test.h Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
_ctypes_test_generated.c.h gh-128715: Expose ctypes.CField, with info attributes (GH-128950) 2025-03-24 14:18:34 +01:00
callbacks.c gh-128715: Expose ctypes.CField, with info attributes (GH-128950) 2025-03-24 14:18:34 +01:00
callproc.c GH-115322: Add missing audit hooks (GH-115624) 2025-04-13 21:46:20 +00:00
cfield.c gh-132305: Make Argument Clinic code compatible with Python 3.10 (#132306) 2025-04-09 19:10:02 +01:00
ctypes.h gh-128182: switch ctypes locking to critical sections (#132133) 2025-04-07 22:00:31 +05:30
malloc_closure.c gh-127945: add locking to malloc closure in free-threading (#131662) 2025-03-25 16:48:46 +05:30
stgdict.c gh-127945: fix thread safety of creating instances of ctypes structures (#131716) 2025-03-30 15:22:30 +05:30