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/win/src/process_thread_policy.h" | 5 #include "sandbox/win/src/process_thread_policy.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
| 11 #include "base/memory/free_deleter.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "sandbox/win/src/ipc_tags.h" | 13 #include "sandbox/win/src/ipc_tags.h" |
13 #include "sandbox/win/src/nt_internals.h" | 14 #include "sandbox/win/src/nt_internals.h" |
14 #include "sandbox/win/src/policy_engine_opcodes.h" | 15 #include "sandbox/win/src/policy_engine_opcodes.h" |
15 #include "sandbox/win/src/policy_params.h" | 16 #include "sandbox/win/src/policy_params.h" |
16 #include "sandbox/win/src/sandbox_types.h" | 17 #include "sandbox/win/src/sandbox_types.h" |
17 #include "sandbox/win/src/win_utils.h" | 18 #include "sandbox/win/src/win_utils.h" |
18 | 19 |
19 namespace { | 20 namespace { |
20 | 21 |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 } | 255 } |
255 if (!::DuplicateHandle(::GetCurrentProcess(), local_handle, | 256 if (!::DuplicateHandle(::GetCurrentProcess(), local_handle, |
256 client_info.process, handle, 0, FALSE, | 257 client_info.process, handle, 0, FALSE, |
257 DUPLICATE_CLOSE_SOURCE | DUPLICATE_SAME_ACCESS)) { | 258 DUPLICATE_CLOSE_SOURCE | DUPLICATE_SAME_ACCESS)) { |
258 return ERROR_ACCESS_DENIED; | 259 return ERROR_ACCESS_DENIED; |
259 } | 260 } |
260 return ERROR_SUCCESS; | 261 return ERROR_SUCCESS; |
261 } | 262 } |
262 | 263 |
263 } // namespace sandbox | 264 } // namespace sandbox |
OLD | NEW |