Audit events table

This table contains all events raised bysys.audit() orPySys_Audit() calls throughout the CPython runtime and thestandard library. These calls were added in 3.8.0 or later (seePEP 578).

Seesys.addaudithook() andPySys_AddAuditHook() forinformation on handling these events.

CPython implementation detail: This table is generated from the CPython documentation, and may notrepresent events raised by other implementations. See your runtimespecific documentation for actual events raised.

Audit event

Arguments

References

The following events are raised internally and do not correspond to anypublic API of CPython:

Audit event

Arguments

_winapi.CreateFile

file_name,desired_access,share_mode,creation_disposition,flags_and_attributes

_winapi.CreateJunction

src_path,dst_path

_winapi.CreateNamedPipe

name,open_mode,pipe_mode

_winapi.CreatePipe

_winapi.CreateProcess

application_name,command_line,current_directory

_winapi.OpenProcess

process_id,desired_access

_winapi.TerminateProcess

handle,exit_code

ctypes.PyObj_FromPtr

obj