审计事件表
下表包含了在整个 CPython 运行时和标准库中由 sys.audit()
或 PySys_Audit()
调用引发的所有事件。这些调用是在 3.8.0 或更高版本中添加的。
请参阅 sys.addaudithook()
和 PySys_AddAuditHook()
了解有关处理这些事件的详细信息。
CPython implementation detail: 此表是根据 CPython 文档生成的,可能无法表示其他实现所引发的事件。 请参阅你的运行时专属的文档了解实际引发的事件。
Audit event | Arguments | References |
---|---|---|
array.new |
| |
builtins.breakpoint |
| |
builtins.input |
| |
builtins.input/result |
| |
code.new |
| |
compile |
| |
cpython.PyInterpreterStateClear | ||
cpython.PyInterpreterStateNew | ||
cpython.PySysClearAuditHooks | ||
cpython.runcommand |
| |
cpython.runfile |
| |
cpython.run_interactivehook |
| <a class=”reference internal” href=”$99de2dc70d84e05a.md#sys.__interactivehook“>[1] |
cpython.run_module |
| |
cpython.run_startup |
| |
cpython.run_stdin | ||
ctypes.addressof |
| |
ctypes.call_function |
| |
ctypes.cdata |
| |
ctypes.cdata/buffer |
| |
ctypes.create_string_buffer |
| |
ctypes.create_unicode_buffer |
| |
ctypes.dlopen |
| |
ctypes.dlsym |
| |
ctypes.dlsym/handle |
| |
ctypes.get_errno | ||
ctypes.get_last_error | ||
ctypes.seh_exception |
| |
ctypes.set_errno |
| |
ctypes.set_last_error |
| |
ctypes.string_at |
| |
ctypes.wstring_at |
| |
ensurepip.bootstrap |
| |
exec |
| |
fcntl.fcntl |
| |
fcntl.flock |
| |
fcntl.ioctl |
| |
fcntl.lockf |
| |
ftplib.connect |
| |
ftplib.sendcmd |
| |
glob.glob |
| |
imaplib.open |
| |
imaplib.send |
| |
import |
| |
mmap.__new |
| |
msvcrt.get_osfhandle |
| |
msvcrt.locking |
| |
msvcrt.open_osfhandle |
| |
nntplib.connect |
| |
nntplib.putline |
| |
open |
| |
os.add_dll_directory |
| |
os.chdir |
| |
os.chflags |
| |
os.chmod |
| |
os.chown |
| |
os.exec |
| |
os.fork | ||
os.forkpty | ||
os.fwalk |
| |
os.getxattr |
| |
os.kill |
| |
os.killpg |
| |
os.link |
| |
os.listdir |
| |
os.listxattr |
| |
os.lockf |
| |
os.mkdir |
| |
os.posix_spawn |
| |
os.putenv |
| |
os.remove |
| |
os.removexattr |
| |
os.rename |
| |
os.rmdir |
| |
os.scandir |
| |
os.setxattr |
| |
os.spawn |
| |
os.startfile |
| |
os.symlink |
| |
os.system |
| |
os.truncate |
| |
os.unsetenv |
| |
os.utime |
| |
os.walk |
| |
pathlib.Path.glob |
| |
pathlib.Path.rglob |
| |
pdb.Pdb | ||
pickle.find_class |
| |
poplib.connect |
| |
poplib.putline |
| |
pty.spawn |
| |
resource.prlimit |
| |
resource.setrlimit |
| |
shutil.chown |
| |
shutil.copyfile |
| |
shutil.copymode |
| |
shutil.copystat |
| |
shutil.copytree |
| |
shutil.make_archive |
| |
shutil.move |
| |
shutil.rmtree |
| |
shutil.unpack_archive |
| |
signal.pthread_kill |
| |
smtplib.connect |
| |
smtplib.send |
| |
socket.__new |
| |
socket.bind |
| |
socket.connect |
| |
socket.getaddrinfo |
| |
socket.gethostbyaddr |
| |
socket.gethostbyname |
| |
socket.gethostname | ||
socket.getnameinfo |
| |
socket.getservbyname |
| |
socket.getservbyport |
| |
socket.sendmsg |
| |
socket.sendto |
| |
socket.sethostname |
| |
sqlite3.connect |
| |
subprocess.Popen |
| |
sys._current_frames | ||
sys._getframe | ||
sys.addaudithook | ||
sys.excepthook |
| |
sys.set_asyncgen_hooks_finalizer | ||
sys.set_asyncgen_hooks_firstiter | ||
sys.setprofile | ||
sys.settrace | ||
sys.unraisablehook |
| |
syslog.closelog | ||
syslog.openlog |
| |
syslog.setlogmask |
| |
syslog.syslog |
| |
telnetlib.Telnet.open |
| |
telnetlib.Telnet.write |
| |
tempfile.mkdtemp |
| |
tempfile.mkstemp |
| |
urllib.Request |
| |
webbrowser.open |
| |
winreg.ConnectRegistry |
| |
winreg.CreateKey |
| |
winreg.DeleteKey |
| |
winreg.DeleteValue |
| |
winreg.DisableReflectionKey |
| |
winreg.EnableReflectionKey |
| |
winreg.EnumKey |
| |
winreg.EnumValue |
| |
winreg.ExpandEnvironmentStrings |
| |
winreg.LoadKey |
| |
winreg.OpenKey |
| |
winreg.OpenKey/result |
| |
winreg.PyHKEY.Detach |
| |
winreg.QueryInfoKey |
| |
winreg.QueryReflectionKey |
| |
winreg.QueryValue |
| |
winreg.SaveKey |
| |
winreg.SetValue |
|