Home
last modified time | relevance | path

Searched refs:local_handle (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/sandbox/win/src/
Dprocess_thread_policy.cc120 HANDLE local_handle; in OpenThreadAction() local
121 NTSTATUS status = NtOpenThread(&local_handle, desired_access, &attributes, in OpenThreadAction()
124 if (!::DuplicateHandle(::GetCurrentProcess(), local_handle, in OpenThreadAction()
127 ::CloseHandle(local_handle); in OpenThreadAction()
152 HANDLE local_handle; in OpenProcessAction() local
153 NTSTATUS status = NtOpenProcess(&local_handle, desired_access, &attributes, in OpenProcessAction()
156 if (!::DuplicateHandle(::GetCurrentProcess(), local_handle, in OpenProcessAction()
159 ::CloseHandle(local_handle); in OpenProcessAction()
178 HANDLE local_handle; in OpenProcessTokenAction() local
180 &local_handle); in OpenProcessTokenAction()
[all …]
Dsync_policy.cc203 HANDLE local_handle = NULL; in CreateEventAction() local
204 status = NtCreateEvent(&local_handle, EVENT_ALL_ACCESS, &object_attributes, in CreateEventAction()
206 if (NULL == local_handle) in CreateEventAction()
209 if (!::DuplicateHandle(::GetCurrentProcess(), local_handle, in CreateEventAction()
240 HANDLE local_handle = NULL; in OpenEventAction() local
241 status = NtOpenEvent(&local_handle, desired_access, &object_attributes); in OpenEventAction()
242 if (NULL == local_handle) in OpenEventAction()
245 if (!::DuplicateHandle(::GetCurrentProcess(), local_handle, in OpenEventAction()
Dfilesystem_policy.cc34 HANDLE local_handle = INVALID_HANDLE_VALUE; in NtCreateFileInTarget() local
35 NTSTATUS status = NtCreateFile(&local_handle, desired_access, obj_attributes, in NtCreateFileInTarget()
43 if (!sandbox::SameObject(local_handle, obj_attributes->ObjectName->Buffer)) { in NtCreateFileInTarget()
45 ::CloseHandle(local_handle); in NtCreateFileInTarget()
49 if (!::DuplicateHandle(::GetCurrentProcess(), local_handle, in NtCreateFileInTarget()
357 HANDLE local_handle = NULL; in SetInformationFileAction() local
359 ::GetCurrentProcess(), &local_handle, 0, FALSE, in SetInformationFileAction()
365 base::win::ScopedHandle handle(local_handle); in SetInformationFileAction()
369 *nt_status = NtSetInformationFile(local_handle, io_block, file_info, length, in SetInformationFileAction()
Dregistry_policy.cc71 HANDLE local_handle = INVALID_HANDLE_VALUE; in NtCreateKeyInTarget() local
72 NTSTATUS status = NtCreateKey(&local_handle, desired_access, obj_attributes, in NtCreateKeyInTarget()
78 if (!::DuplicateHandle(::GetCurrentProcess(), local_handle, in NtCreateKeyInTarget()
99 HANDLE local_handle = INVALID_HANDLE_VALUE; in NtOpenKeyInTarget() local
100 NTSTATUS status = NtOpenKey(&local_handle, desired_access, obj_attributes); in NtOpenKeyInTarget()
105 if (!::DuplicateHandle(::GetCurrentProcess(), local_handle, in NtOpenKeyInTarget()