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

Side by Side Diff: sandbox/win/src/policy_broker.cc

Issue 10689170: Move the Windows sandbox to sandbox/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on top of tree (properly this time) Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sandbox/win/src/policy_broker.h ('k') | sandbox/win/src/policy_engine_opcodes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <map> 5 #include <map>
6 6
7 #include "sandbox/src/policy_broker.h" 7 #include "sandbox/win/src/policy_broker.h"
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/win/pe_image.h" 10 #include "base/win/pe_image.h"
11 #include "base/win/windows_version.h" 11 #include "base/win/windows_version.h"
12 #include "sandbox/src/interception.h" 12 #include "sandbox/win/src/interception.h"
13 #include "sandbox/src/interceptors.h" 13 #include "sandbox/win/src/interceptors.h"
14 #include "sandbox/src/policy_target.h" 14 #include "sandbox/win/src/policy_target.h"
15 #include "sandbox/src/process_thread_interception.h" 15 #include "sandbox/win/src/process_thread_interception.h"
16 #include "sandbox/src/sandbox.h" 16 #include "sandbox/win/src/sandbox.h"
17 #include "sandbox/src/sandbox_nt_types.h" 17 #include "sandbox/win/src/sandbox_nt_types.h"
18 #include "sandbox/src/sandbox_types.h" 18 #include "sandbox/win/src/sandbox_types.h"
19 #include "sandbox/src/sandbox_utils.h" 19 #include "sandbox/win/src/sandbox_utils.h"
20 #include "sandbox/src/target_process.h" 20 #include "sandbox/win/src/target_process.h"
21 21
22 // This code executes on the broker side, as a callback from the policy on the 22 // This code executes on the broker side, as a callback from the policy on the
23 // target side (the child). 23 // target side (the child).
24 24
25 namespace sandbox { 25 namespace sandbox {
26 26
27 // This is the list of all imported symbols from ntdll.dll. 27 // This is the list of all imported symbols from ntdll.dll.
28 SANDBOX_INTERCEPT NtExports g_nt; 28 SANDBOX_INTERCEPT NtExports g_nt;
29 29
30 #define INIT_GLOBAL_NT(member) \ 30 #define INIT_GLOBAL_NT(member) \
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 return false; 109 return false;
110 110
111 return INTERCEPT_NT(manager, NtOpenThreadTokenEx, OPEN_THREAD_TOKEN_EX_ID, 111 return INTERCEPT_NT(manager, NtOpenThreadTokenEx, OPEN_THREAD_TOKEN_EX_ID,
112 24); 112 24);
113 } 113 }
114 114
115 return true; 115 return true;
116 } 116 }
117 117
118 } // namespace sandbox 118 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/win/src/policy_broker.h ('k') | sandbox/win/src/policy_engine_opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698