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 // For information about interceptions as a whole see | 5 // For information about interceptions as a whole see |
6 // http://dev.chromium.org/developers/design-documents/sandbox . | 6 // http://dev.chromium.org/developers/design-documents/sandbox . |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "sandbox/src/interception.h" | 10 #include "sandbox/win/src/interception.h" |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/win/pe_image.h" | 14 #include "base/win/pe_image.h" |
15 #include "base/win/windows_version.h" | 15 #include "base/win/windows_version.h" |
16 #include "sandbox/src/interception_internal.h" | 16 #include "sandbox/win/src/interception_internal.h" |
17 #include "sandbox/src/interceptors.h" | 17 #include "sandbox/win/src/interceptors.h" |
18 #include "sandbox/src/sandbox.h" | 18 #include "sandbox/win/src/sandbox.h" |
19 #include "sandbox/src/sandbox_utils.h" | 19 #include "sandbox/win/src/sandbox_utils.h" |
20 #include "sandbox/src/service_resolver.h" | 20 #include "sandbox/win/src/service_resolver.h" |
21 #include "sandbox/src/target_interceptions.h" | 21 #include "sandbox/win/src/target_interceptions.h" |
22 #include "sandbox/src/target_process.h" | 22 #include "sandbox/win/src/target_process.h" |
23 #include "sandbox/src/wow64.h" | 23 #include "sandbox/win/src/wow64.h" |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 const char kMapViewOfSectionName[] = "NtMapViewOfSection"; | 27 const char kMapViewOfSectionName[] = "NtMapViewOfSection"; |
28 const char kUnmapViewOfSectionName[] = "NtUnmapViewOfSection"; | 28 const char kUnmapViewOfSectionName[] = "NtUnmapViewOfSection"; |
29 | 29 |
30 // Standard allocation granularity and page size for Windows. | 30 // Standard allocation granularity and page size for Windows. |
31 const size_t kAllocGranularity = 65536; | 31 const size_t kAllocGranularity = 65536; |
32 const size_t kPageSize = 4096; | 32 const size_t kPageSize = 4096; |
33 | 33 |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 ::FreeLibrary(local_interceptor); | 542 ::FreeLibrary(local_interceptor); |
543 #endif | 543 #endif |
544 | 544 |
545 if (it != interceptions_.end()) | 545 if (it != interceptions_.end()) |
546 return false; | 546 return false; |
547 | 547 |
548 return true; | 548 return true; |
549 } | 549 } |
550 | 550 |
551 } // namespace sandbox | 551 } // namespace sandbox |
OLD | NEW |