security/sandbox/win/src/interceptors.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
michael@0 2 // Use of this source code is governed by a BSD-style license that can be
michael@0 3 // found in the LICENSE file.
michael@0 4
michael@0 5 #ifndef SANDBOX_SRC_INTERCEPTORS_H_
michael@0 6 #define SANDBOX_SRC_INTERCEPTORS_H_
michael@0 7
michael@0 8 #if defined(_WIN64)
michael@0 9 #include "sandbox/win/src/interceptors_64.h"
michael@0 10 #endif
michael@0 11
michael@0 12 namespace sandbox {
michael@0 13
michael@0 14 enum InterceptorId {
michael@0 15 // Internal use:
michael@0 16 MAP_VIEW_OF_SECTION_ID = 0,
michael@0 17 UNMAP_VIEW_OF_SECTION_ID,
michael@0 18 // Policy broker:
michael@0 19 SET_INFORMATION_THREAD_ID,
michael@0 20 OPEN_THREAD_TOKEN_ID,
michael@0 21 OPEN_THREAD_TOKEN_EX_ID,
michael@0 22 OPEN_TREAD_ID,
michael@0 23 OPEN_PROCESS_ID,
michael@0 24 OPEN_PROCESS_TOKEN_ID,
michael@0 25 OPEN_PROCESS_TOKEN_EX_ID,
michael@0 26 // Filesystem dispatcher:
michael@0 27 CREATE_FILE_ID,
michael@0 28 OPEN_FILE_ID,
michael@0 29 QUERY_ATTRIB_FILE_ID,
michael@0 30 QUERY_FULL_ATTRIB_FILE_ID,
michael@0 31 SET_INFO_FILE_ID,
michael@0 32 // Named pipe dispatcher:
michael@0 33 CREATE_NAMED_PIPE_ID,
michael@0 34 // Process-thread dispatcher:
michael@0 35 CREATE_PROCESSW_ID,
michael@0 36 CREATE_PROCESSA_ID,
michael@0 37 // Registry dispatcher:
michael@0 38 CREATE_KEY_ID,
michael@0 39 OPEN_KEY_ID,
michael@0 40 OPEN_KEY_EX_ID,
michael@0 41 // Sync dispatcher:
michael@0 42 CREATE_EVENT_ID,
michael@0 43 OPEN_EVENT_ID,
michael@0 44 // CSRSS bypasses for HandleCloser:
michael@0 45 CREATE_THREAD_ID,
michael@0 46 GET_USER_DEFAULT_LCID_ID,
michael@0 47 INTERCEPTOR_MAX_ID
michael@0 48 };
michael@0 49
michael@0 50 typedef void* OriginalFunctions[INTERCEPTOR_MAX_ID];
michael@0 51
michael@0 52 } // namespace sandbox
michael@0 53
michael@0 54 #endif // SANDBOX_SRC_INTERCEPTORS_H_

mercurial