mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-135543: Emit sys.remote_exec audit event when sys.remote_exec is called (GH-135544)
(cherry picked from commit 1ddfe59320
)
Co-authored-by: Nadeshiko Manju <me@manjusaka.me>
This commit is contained in:
parent
83e0ab17f6
commit
0370cb42da
8 changed files with 79 additions and 20 deletions
|
@ -1220,7 +1220,7 @@ static inline int run_remote_debugger_source(PyObject *source)
|
|||
// that would be an easy target for a ROP gadget.
|
||||
static inline void run_remote_debugger_script(PyObject *path)
|
||||
{
|
||||
if (0 != PySys_Audit("remote_debugger_script", "O", path)) {
|
||||
if (0 != PySys_Audit("cpython.remote_debugger_script", "O", path)) {
|
||||
PyErr_FormatUnraisable(
|
||||
"Audit hook failed for remote debugger script %U", path);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue