Home
last modified time | relevance | path

Searched refs:PySys_Audit (Results 1 – 25 of 40) sorted by relevance

12

/third_party/python/PC/
Dwinreg.c297 if (PySys_Audit("winreg.PyHKEY.Detach", "n", (Py_ssize_t)self->hkey) < 0) { in winreg_HKEYType_Detach_impl()
857 if (PySys_Audit("winreg.ConnectRegistry", "un", in winreg_ConnectRegistry_impl()
898 if (PySys_Audit("winreg.CreateKey", "nun", in winreg_CreateKey_impl()
908 if (PySys_Audit("winreg.OpenKey/result", "n", in winreg_CreateKey_impl()
948 if (PySys_Audit("winreg.CreateKey", "nun", in winreg_CreateKeyEx_impl()
959 if (PySys_Audit("winreg.OpenKey/result", "n", in winreg_CreateKeyEx_impl()
989 if (PySys_Audit("winreg.DeleteKey", "nun", in winreg_DeleteKey_impl()
1035 if (PySys_Audit("winreg.DeleteKey", "nun", in winreg_DeleteKeyEx_impl()
1078 if (PySys_Audit("winreg.DeleteValue", "nu", in winreg_DeleteValue_impl()
1114 if (PySys_Audit("winreg.EnumKey", "ni", in winreg_EnumKey_impl()
[all …]
Dmsvcrtmodule.c119 if (PySys_Audit("msvcrt.locking", "iil", fd, mode, nbytes) < 0) { in msvcrt_locking_impl()
180 if (PySys_Audit("msvcrt.open_osfhandle", "Ki", handle, flags) < 0) { in msvcrt_open_osfhandle_impl()
202 if (PySys_Audit("msvcrt.get_osfhandle", "(i)", fd) < 0) { in msvcrt_get_osfhandle_impl()
/third_party/python/Modules/
Dsyslogmodule.c147 if (PySys_Audit("syslog.openlog", "sll", ident, logopt, facility) < 0) { in syslog_openlog()
177 if (PySys_Audit("syslog.syslog", "is", priority, message) < 0) { in syslog_syslog()
205 if (PySys_Audit("syslog.closelog", NULL) < 0) { in syslog_closelog()
223 if (PySys_Audit("syslog.setlogmask", "(O)", args ? args : Py_None) < 0) { in syslog_setlogmask()
Dmain.c236 if (PySys_Audit("cpython.run_command", "O", unicode) < 0) { in pymain_run_command()
262 if (PySys_Audit("cpython.run_module", "u", modname) < 0) { in pymain_run_module()
313 if (PySys_Audit("cpython.run_file", "O", filename) < 0) { in pymain_run_file_obj()
407 if (PySys_Audit("cpython.run_startup", "O", startup) < 0) { in pymain_run_startup()
456 if (PySys_Audit("cpython.run_interactivehook", "O", hook) < 0) { in pymain_run_interactive_hook()
497 if (PySys_Audit("cpython.run_stdin", NULL) < 0) { in pymain_run_stdin()
Dfcntlmodule.c57 if (PySys_Audit("fcntl.fcntl", "iiO", fd, code, arg ? arg : Py_None) < 0) { in fcntl_fcntl_impl()
166 if (PySys_Audit("fcntl.ioctl", "iIO", fd, code, in fcntl_ioctl_impl()
288 if (PySys_Audit("fcntl.flock", "ii", fd, code) < 0) { in fcntl_flock_impl()
376 if (PySys_Audit("fcntl.lockf", "iiOOi", fd, code, lenobj ? lenobj : Py_None, in fcntl_lockf_impl()
Dposixmodule.c3141 if (PySys_Audit("os.chdir", "(O)", path->object) < 0) { in os_chdir_impl()
3184 if (PySys_Audit("os.chdir", "(i)", fd) < 0) { in os_fchdir_impl()
3245 if (PySys_Audit("os.chmod", "Oii", path->object, mode, in os_chmod_impl()
3360 if (PySys_Audit("os.chmod", "iii", fd, mode, -1) < 0) { in os_fchmod_impl()
3395 if (PySys_Audit("os.chmod", "Oii", path->object, mode, -1) < 0) { in os_lchmod_impl()
3440 if (PySys_Audit("os.chflags", "Ok", path->object, flags) < 0) { in os_chflags_impl()
3479 if (PySys_Audit("os.chflags", "Ok", path->object, flags) < 0) { in os_lchflags_impl()
3635 if (PySys_Audit("os.chown", "OIIi", path->object, uid, gid, in os_chown_impl()
3703 if (PySys_Audit("os.chown", "iIIi", fd, uid, gid, -1) < 0) { in os_fchown_impl()
3739 if (PySys_Audit("os.chown", "OIIi", path->object, uid, gid, -1) < 0) { in os_lchown_impl()
[all …]
D_winapi.c473 if (PySys_Audit("_winapi.CreateFile", "uIIII", in _winapi_CreateFile_impl()
562 if (PySys_Audit("_winapi.CreateJunction", "uu", src_path, dst_path) < 0) { in _winapi_CreateJunction_impl()
693 if (PySys_Audit("_winapi.CreateNamedPipe", "uII", in _winapi_CreateNamedPipe_impl()
732 if (PySys_Audit("_winapi.CreatePipe", NULL) < 0) { in _winapi_CreatePipe_impl()
1087 if (PySys_Audit("_winapi.CreateProcess", "uuu", application_name, in _winapi_CreateProcess_impl()
1451 if (PySys_Audit("_winapi.OpenProcess", "II", in _winapi_OpenProcess_impl()
1634 if (PySys_Audit("_winapi.TerminateProcess", "nI", in _winapi_TerminateProcess_impl()
Dresource.c240 if (PySys_Audit("resource.setrlimit", "iO", resource, in resource_setrlimit_impl()
290 if (PySys_Audit("resource.prlimit", "iiO", pid, resource, in resource_prlimit_impl()
Dsocketmodule.c3108 if (PySys_Audit("socket.bind", "OO", s, addro) < 0) { in sock_bind()
3278 if (PySys_Audit("socket.connect", "OO", s, addro) < 0) { in sock_connect()
3309 if (PySys_Audit("socket.connect", "OO", s, addro) < 0) { in sock_connect_ex()
4316 if (PySys_Audit("socket.sendto", "OO", s, addro) < 0) { in sock_sendto()
4451 if (PySys_Audit("socket.sendmsg", "OO", s, addr_arg) < 0) {
4457 if (PySys_Audit("socket.sendmsg", "OO", s, Py_None) < 0) {
5114 if (PySys_Audit("socket.__new__", "Oiii",
5133 if (PySys_Audit("socket.__new__", "Oiii", s,
5373 if (PySys_Audit("socket.gethostname", NULL) < 0) {
5456 if (PySys_Audit("socket.sethostname", "(O)", hnobj) < 0) {
[all …]
Dgcmodule.c1690 if (PySys_Audit("gc.get_referrers", "(O)", args) < 0) { in gc_get_referrers()
1724 if (PySys_Audit("gc.get_referents", "(O)", args) < 0) { in gc_get_referents()
1769 if (PySys_Audit("gc.get_objects", "n", generation) < 0) { in gc_get_objects_impl()
Dmmapmodule.c1201 if (PySys_Audit("mmap.__new__", "ini" _Py_PARSE_OFF_T, in new_mmap_object()
1336 if (PySys_Audit("mmap.__new__", "iniL", in new_mmap_object()
/third_party/python/Parser/
Dpeg_api.c10 if (PySys_Audit("compile", "yO", str, filename) < 0) { in _PyParser_ASTFromString()
23 if (PySys_Audit("compile", "OO", Py_None, filename_ob) < 0) { in _PyParser_ASTFromFile()
/third_party/python/Objects/
Dfuncobject.c302 if (PySys_Audit("object.__getattr__", "Os", op, "__code__") < 0) { in func_get_code()
323 if (PySys_Audit("object.__setattr__", "OsO", in func_set_code()
391 if (PySys_Audit("object.__getattr__", "Os", op, "__defaults__") < 0) { in func_get_defaults()
414 if (PySys_Audit("object.__setattr__", "OsO", in func_set_defaults()
418 } else if (PySys_Audit("object.__delattr__", "Os", in func_set_defaults()
431 if (PySys_Audit("object.__getattr__", "Os", in func_get_kwdefaults()
455 if (PySys_Audit("object.__setattr__", "OsO", in func_set_kwdefaults()
459 } else if (PySys_Audit("object.__delattr__", "Os", in func_set_kwdefaults()
595 if (PySys_Audit("function.__new__", "O", code) < 0) { in func_new_impl()
Dfileobject.c518 PySys_Audit("setopencodehook", NULL) < 0) { in PyFile_SetOpenCodeHook()
Dcodeobject.c563 if (PySys_Audit("code.__new__", "OOOiiiiii", in code_new_impl()
750 if (PySys_Audit("code.__new__", "OOOiiiiii", in code_replace_impl()
/third_party/python/Modules/_ctypes/
Dcallproc.c222 if (PySys_Audit("ctypes.get_errno", NULL) < 0) { in get_errno()
231 if (PySys_Audit("ctypes.set_errno", "O", args) < 0) { in set_errno()
242 if (PySys_Audit("ctypes.get_last_error", NULL) < 0) { in get_last_error()
251 if (PySys_Audit("ctypes.set_last_error", "O", args) < 0) { in set_last_error()
281 if (PySys_Audit("ctypes.seh_exception", "I", code) < 0) { in SetException()
1356 if (PySys_Audit("ctypes.dlopen", "O", nameobj) < 0) { in load_library()
1527 if (PySys_Audit("ctypes.dlopen", "O", name) < 0) { in py_dl_open()
1566 if (PySys_Audit("ctypes.dlsym/handle", "O", args) < 0) { in py_dl_sym()
1596 if (PySys_Audit("ctypes.call_function", "nO", in call_function()
1631 if (PySys_Audit("ctypes.call_function", "nO", in call_cdeclfunction()
[all …]
D_ctypes.c651 if (PySys_Audit("ctypes.cdata/buffer", "nnn", in CDataType_from_buffer()
707 if (PySys_Audit("ctypes.cdata/buffer", "nnn", in CDataType_from_buffer_copy()
736 if (PySys_Audit("ctypes.dlsym", "O", args) < 0) { in CDataType_in_dll()
3029 if (PySys_Audit("ctypes.cdata", "n", (Py_ssize_t)buf) < 0) { in PyCData_AtAddress()
3571 if (PySys_Audit("ctypes.dlsym", in PyCFuncPtr_FromDll()
3578 if (PySys_Audit("ctypes.dlsym", "Os", dll, name) < 0) { in PyCFuncPtr_FromDll()
5560 if (PySys_Audit("ctypes.string_at", "ni", (Py_ssize_t)ptr, size) < 0) { in string_at()
5654 if (PySys_Audit("ctypes.wstring_at", "nn", (Py_ssize_t)ptr, ssize) < 0) { in wstring_at()
/third_party/python/Include/cpython/
Dsysmodule.h12 PyAPI_FUNC(int) PySys_Audit(
/third_party/python/Doc/library/
Daudit_events.rst9 :c:func:`PySys_Audit` calls throughout the CPython runtime and the
/third_party/python/Python/
Dimportdl.c125 if (PySys_Audit("import", "OOOOO", name_unicode, path, in _PyImport_LoadDynamicModuleWithSpec()
Dbltinmodule.c479 if (PySys_Audit("builtins.breakpoint", "O", hook) < 0) { in builtin_breakpoint()
958 if (PySys_Audit("exec", "O", source) < 0) { in builtin_eval_impl()
1046 if (PySys_Audit("exec", "O", source) < 0) { in builtin_exec_impl()
1197 if (id && PySys_Audit("builtins.id", "O", id) < 0) { in builtin_id()
2077 if (PySys_Audit("builtins.input", "O", prompt ? prompt : Py_None) < 0) { in builtin_input_impl()
2213 if (PySys_Audit("builtins.input/result", "O", result) < 0) { in builtin_input_impl()
Dfileutils.c1500 if (PySys_Audit("open", "OOi", pathname_obj, Py_None, flags) < 0) { in _Py_open_impl()
1578 if (PySys_Audit("open", "uui", path, mode, 0) < 0) { in _Py_wfopen()
1633 if (PySys_Audit("open", "Osi", path, mode, 0) < 0) { in _Py_fopen_obj()
1679 if (PySys_Audit("open", "Osi", path, mode, 0) < 0) { in _Py_fopen_obj()
Dmarshal.c599 if (PySys_Audit("marshal.dumps", "Oi", x, version) < 0) { in PyMarshal_WriteObjectToFile()
1437 if (PySys_Audit("marshal.loads", "y#", p->ptr, (Py_ssize_t)(p->end - p->ptr)) < 0) { in read_object()
1441 if (PySys_Audit("marshal.load", NULL) < 0) { in read_object()
1574 if (PySys_Audit("marshal.dumps", "Oi", x, version) < 0) { in PyMarshal_WriteObjectToString()
/third_party/python/Modules/_sqlite/
Dconnection.c89 if (PySys_Audit("sqlite3.connect", "O", database_obj) < 0) { in pysqlite_connection_init()
189 if (PySys_Audit("sqlite3.connect/handle", "O", self) < 0) { in pysqlite_connection_init()
1214 if (PySys_Audit("sqlite3.enable_load_extension", in pysqlite_connection_enable_load_extension_impl()
1250 if (PySys_Audit("sqlite3.load_extension", "Os", self, extension_name) < 0) { in pysqlite_connection_load_extension_impl()
/third_party/python/Programs/
D_testembed.c1158 if (PySys_Audit("_testembed.raise", NULL) == 0) { in _test_audit()
1162 if (PySys_Audit("_testembed.nop", NULL) != 0) { in _test_audit()
1174 if (PySys_Audit("_testembed.set", "n", setValue) != 0) { in _test_audit()

12