| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |