| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "sandbox/src/registry_dispatcher.h" | 5 #include "sandbox/win/src/registry_dispatcher.h" |
| 6 | 6 |
| 7 #include "base/win/scoped_handle.h" | 7 #include "base/win/scoped_handle.h" |
| 8 #include "base/win/windows_version.h" | 8 #include "base/win/windows_version.h" |
| 9 #include "sandbox/src/crosscall_client.h" | 9 #include "sandbox/win/src/crosscall_client.h" |
| 10 #include "sandbox/src/interception.h" | 10 #include "sandbox/win/src/interception.h" |
| 11 #include "sandbox/src/interceptors.h" | 11 #include "sandbox/win/src/interceptors.h" |
| 12 #include "sandbox/src/ipc_tags.h" | 12 #include "sandbox/win/src/ipc_tags.h" |
| 13 #include "sandbox/src/sandbox_nt_util.h" | 13 #include "sandbox/win/src/sandbox_nt_util.h" |
| 14 #include "sandbox/src/policy_broker.h" | 14 #include "sandbox/win/src/policy_broker.h" |
| 15 #include "sandbox/src/policy_params.h" | 15 #include "sandbox/win/src/policy_params.h" |
| 16 #include "sandbox/src/sandbox.h" | 16 #include "sandbox/win/src/sandbox.h" |
| 17 #include "sandbox/src/registry_interception.h" | 17 #include "sandbox/win/src/registry_interception.h" |
| 18 #include "sandbox/src/registry_policy.h" | 18 #include "sandbox/win/src/registry_policy.h" |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // Builds a path using the root directory and the name. | 22 // Builds a path using the root directory and the name. |
| 23 bool GetCompletePath(HANDLE root, const std::wstring& name, | 23 bool GetCompletePath(HANDLE root, const std::wstring& name, |
| 24 std::wstring* complete_name) { | 24 std::wstring* complete_name) { |
| 25 if (root) { | 25 if (root) { |
| 26 if (!sandbox::GetPathFromHandle(root, complete_name)) | 26 if (!sandbox::GetPathFromHandle(root, complete_name)) |
| 27 return false; | 27 return false; |
| 28 | 28 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 return true; | 152 return true; |
| 153 } | 153 } |
| 154 | 154 |
| 155 // Return operation status on the IPC. | 155 // Return operation status on the IPC. |
| 156 ipc->return_info.nt_status = nt_status; | 156 ipc->return_info.nt_status = nt_status; |
| 157 ipc->return_info.handle = handle; | 157 ipc->return_info.handle = handle; |
| 158 return true; | 158 return true; |
| 159 } | 159 } |
| 160 | 160 |
| 161 } // namespace sandbox | 161 } // namespace sandbox |
| OLD | NEW |