From 4bc818e1dc285910638203a0d94063a9e92e36b0 Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" Date: Thu, 4 Feb 2010 22:47:37 +0000 Subject: Sandbox: Finish the interception manager support for x64. Unit tests and integration tests run (as long as they don't depend on IPCs), both regular and under SANDBOX_EXPORTS. The interception agent is there, but no EAT interceptions yet. BUG=27218 TEST=unit tests/ integration tests. Review URL: http://codereview.chromium.org/565026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38143 0039d316-1c4b-4281-b951-d872f2087c98 --- sandbox/src/interceptors.h | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'sandbox/src/interceptors.h') diff --git a/sandbox/src/interceptors.h b/sandbox/src/interceptors.h index 7064e07..2b033b6 100644 --- a/sandbox/src/interceptors.h +++ b/sandbox/src/interceptors.h @@ -12,15 +12,39 @@ namespace sandbox { enum InterceptorId { + // Internal use: MAP_VIEW_OF_SECTION_ID = 0, UNMAP_VIEW_OF_SECTION_ID, + // Policy broker: SET_INFORMATION_THREAD_ID, OPEN_THREAD_TOKEN_ID, OPEN_THREAD_TOKEN_EX_ID, - MAX_ID + OPEN_TREAD_ID, + OPEN_PROCESS_ID, + OPEN_PROCESS_TOKEN_ID, + OPEN_PROCESS_TOKEN_EX_ID, + // Filesystem dispatcher: + CREATE_FILE_ID, + OPEN_FILE_ID, + QUERY_ATTRIB_FILE_ID, + QUERY_FULL_ATTRIB_FILE_ID, + SET_INFO_FILE_ID, + // Named pipe dispatcher: + CREATE_NAMED_PIPE_ID, + // Process-thread dispatcher: + CREATE_PROCESSW_ID, + CREATE_PROCESSA_ID, + // Registry dispatcher: + CREATE_KEY_ID, + OPEN_KEY_ID, + OPEN_KEY_EX_ID, + // Sync dispatcher: + CREATE_EVENT_ID, + OPEN_EVENT_ID, + INTERCEPTOR_MAX_ID }; -typedef void* OriginalFunctions[MAX_ID]; +typedef void* OriginalFunctions[INTERCEPTOR_MAX_ID]; } // namespace sandbox -- cgit v1.1