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