OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/src/policy_broker.h" |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/pe_image.h" |
10 #include "base/win_util.h" | 11 #include "base/win_util.h" |
11 #include "sandbox/src/interception.h" | 12 #include "sandbox/src/interception.h" |
12 #include "sandbox/src/pe_image.h" | |
13 #include "sandbox/src/policy_target.h" | 13 #include "sandbox/src/policy_target.h" |
14 #include "sandbox/src/process_thread_interception.h" | 14 #include "sandbox/src/process_thread_interception.h" |
15 #include "sandbox/src/sandbox.h" | 15 #include "sandbox/src/sandbox.h" |
16 #include "sandbox/src/sandbox_nt_types.h" | 16 #include "sandbox/src/sandbox_nt_types.h" |
17 #include "sandbox/src/sandbox_types.h" | 17 #include "sandbox/src/sandbox_types.h" |
18 #include "sandbox/src/sandbox_utils.h" | 18 #include "sandbox/src/sandbox_utils.h" |
19 #include "sandbox/src/target_process.h" | 19 #include "sandbox/src/target_process.h" |
20 | 20 |
21 // This code executes on the broker side, as a callback from the policy on the | 21 // This code executes on the broker side, as a callback from the policy on the |
22 // target side (the child). | 22 // target side (the child). |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 return false; | 107 return false; |
108 | 108 |
109 return INTERCEPT_NT(manager, NtOpenThreadTokenEx, | 109 return INTERCEPT_NT(manager, NtOpenThreadTokenEx, |
110 "_TargetNtOpenThreadTokenEx@24"); | 110 "_TargetNtOpenThreadTokenEx@24"); |
111 } | 111 } |
112 | 112 |
113 return true; | 113 return true; |
114 } | 114 } |
115 | 115 |
116 } // namespace sandbox | 116 } // namespace sandbox |
OLD | NEW |