Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1260)

Unified Diff: sandbox/win/src/interceptors_64.cc

Issue 1296223005: Continuing changes for lpc proxy Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/win/src/interceptors_64.h ('k') | sandbox/win/src/ipc_tags.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/interceptors_64.cc
diff --git a/sandbox/win/src/interceptors_64.cc b/sandbox/win/src/interceptors_64.cc
index ef0b5f0017aac0fdcfef874271d0e4e75118de7e..3f81dd23cabb94476fc6219506e36658ebd26e49 100644
--- a/sandbox/win/src/interceptors_64.cc
+++ b/sandbox/win/src/interceptors_64.cc
@@ -6,6 +6,7 @@
#include "sandbox/win/src/interceptors.h"
#include "sandbox/win/src/filesystem_interception.h"
+#include "sandbox/win/src/lpc_interception.h"
#include "sandbox/win/src/named_pipe_interception.h"
#include "sandbox/win/src/policy_target.h"
#include "sandbox/win/src/process_mitigations_win32k_interception.h"
@@ -275,4 +276,23 @@ SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW64(
return TargetRegisterClassW(orig_fn, wnd_class);
}
+SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtAlpcConnectPort64(
+ PHANDLE port_handle,
+ PUNICODE_STRING port_name,
+ POBJECT_ATTRIBUTES object_attributes,
+ void* port_attributes,
+ ULONG flags,
+ void* sid,
+ void* connection_message,
+ ULONG* buffer_length,
+ void* out_message_attributes,
+ void* in_message_attributes,
+ PLARGE_INTEGER timeout) {
+ NtAlpcConnectPortFunction orig_fn = reinterpret_cast<
+ NtAlpcConnectPortFunction>(g_originals[NTCONNECTALPCPORT_ID]);
+ return TargetNtAlpcConnectPort(orig_fn, port_handle, port_name,
+ object_attributes, port_attributes, flags, sid, connection_message,
+ buffer_length, out_message_attributes, in_message_attributes, time_out);
+}
+
} // namespace sandbox
« no previous file with comments | « sandbox/win/src/interceptors_64.h ('k') | sandbox/win/src/ipc_tags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698