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 #ifndef SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ | 5 #ifndef SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ |
6 #define SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ | 6 #define SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ |
7 | 7 |
8 namespace sandbox { | 8 namespace sandbox { |
9 | 9 |
10 // Operation result codes returned by the sandbox API. | 10 // Operation result codes returned by the sandbox API. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 // If the sandbox cannot create a secure environment for the target, the | 52 // If the sandbox cannot create a secure environment for the target, the |
53 // target will be forcibly terminated. These are the process exit codes. | 53 // target will be forcibly terminated. These are the process exit codes. |
54 enum TerminationCodes { | 54 enum TerminationCodes { |
55 SBOX_FATAL_INTEGRITY = 7006, // Could not set the integrity level. | 55 SBOX_FATAL_INTEGRITY = 7006, // Could not set the integrity level. |
56 SBOX_FATAL_DROPTOKEN = 7007, // Could not lower the token. | 56 SBOX_FATAL_DROPTOKEN = 7007, // Could not lower the token. |
57 SBOX_FATAL_FLUSHANDLES = 7008, // Failed to flush registry handles. | 57 SBOX_FATAL_FLUSHANDLES = 7008, // Failed to flush registry handles. |
58 SBOX_FATAL_CACHEDISABLE = 7009, // Failed to forbid HCKU caching. | 58 SBOX_FATAL_CACHEDISABLE = 7009, // Failed to forbid HCKU caching. |
59 SBOX_FATAL_CLOSEHANDLES = 7010, // Failed to close pending handles. | 59 SBOX_FATAL_CLOSEHANDLES = 7010, // Failed to close pending handles. |
60 SBOX_FATAL_MITIGATION = 7011, // Could not set the mitigation policy. | 60 SBOX_FATAL_MITIGATION = 7011, // Could not set the mitigation policy. |
| 61 SBOX_FATAL_MEMORY_EXCEEDED = 7012, // Exceeded the job memory limit. |
61 SBOX_FATAL_LAST | 62 SBOX_FATAL_LAST |
62 }; | 63 }; |
63 | 64 |
64 class BrokerServices; | 65 class BrokerServices; |
65 class TargetServices; | 66 class TargetServices; |
66 | 67 |
67 // Contains the pointer to a target or broker service. | 68 // Contains the pointer to a target or broker service. |
68 struct SandboxInterfaceInfo { | 69 struct SandboxInterfaceInfo { |
69 BrokerServices* broker_services; | 70 BrokerServices* broker_services; |
70 TargetServices* target_services; | 71 TargetServices* target_services; |
(...skipping 11 matching lines...) Expand all Loading... |
82 INTERCEPTION_EAT, | 83 INTERCEPTION_EAT, |
83 INTERCEPTION_SIDESTEP, // Preamble patch | 84 INTERCEPTION_SIDESTEP, // Preamble patch |
84 INTERCEPTION_SMART_SIDESTEP, // Preamble patch but bypass internal calls | 85 INTERCEPTION_SMART_SIDESTEP, // Preamble patch but bypass internal calls |
85 INTERCEPTION_UNLOAD_MODULE, // Unload the module (don't patch) | 86 INTERCEPTION_UNLOAD_MODULE, // Unload the module (don't patch) |
86 INTERCEPTION_LAST // Placeholder for last item in the enumeration | 87 INTERCEPTION_LAST // Placeholder for last item in the enumeration |
87 }; | 88 }; |
88 | 89 |
89 } // namespace sandbox | 90 } // namespace sandbox |
90 | 91 |
91 #endif // SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ | 92 #endif // SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ |
OLD | NEW |