OLD | NEW |
1 // Copyright (c) 2006-2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 #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 25 matching lines...) Expand all Loading... |
36 // Failed to create the alternate window station. | 36 // Failed to create the alternate window station. |
37 SBOX_ERROR_CANNOT_CREATE_WINSTATION = 12, | 37 SBOX_ERROR_CANNOT_CREATE_WINSTATION = 12, |
38 // Failed to switch back to the interactive window station. | 38 // Failed to switch back to the interactive window station. |
39 SBOX_ERROR_FAILED_TO_SWITCH_BACK_WINSTATION = 13, | 39 SBOX_ERROR_FAILED_TO_SWITCH_BACK_WINSTATION = 13, |
40 // The supplied AppContainer is not valid. | 40 // The supplied AppContainer is not valid. |
41 SBOX_ERROR_INVALID_APP_CONTAINER = 14, | 41 SBOX_ERROR_INVALID_APP_CONTAINER = 14, |
42 // The supplied capability is not valid. | 42 // The supplied capability is not valid. |
43 SBOX_ERROR_INVALID_CAPABILITY = 15, | 43 SBOX_ERROR_INVALID_CAPABILITY = 15, |
44 // There is a failure initializing the AppContainer. | 44 // There is a failure initializing the AppContainer. |
45 SBOX_ERROR_CANNOT_INIT_APPCONTAINER = 16, | 45 SBOX_ERROR_CANNOT_INIT_APPCONTAINER = 16, |
46 // Initializing or updating ProcThreadAttributes failed. | |
47 SBOX_ERROR_PROC_THREAD_ATTRIBUTES = 17, | |
48 // Placeholder for last item of the enum. | 46 // Placeholder for last item of the enum. |
49 SBOX_ERROR_LAST | 47 SBOX_ERROR_LAST |
50 }; | 48 }; |
51 | 49 |
52 // If the sandbox cannot create a secure environment for the target, the | 50 // If the sandbox cannot create a secure environment for the target, the |
53 // target will be forcibly terminated. These are the process exit codes. | 51 // target will be forcibly terminated. These are the process exit codes. |
54 enum TerminationCodes { | 52 enum TerminationCodes { |
55 SBOX_FATAL_INTEGRITY = 7006, // Could not set the integrity level. | 53 SBOX_FATAL_INTEGRITY = 7006, // Could not set the integrity level. |
56 SBOX_FATAL_DROPTOKEN = 7007, // Could not lower the token. | 54 SBOX_FATAL_DROPTOKEN = 7007, // Could not lower the token. |
57 SBOX_FATAL_FLUSHANDLES = 7008, // Failed to flush registry handles. | 55 SBOX_FATAL_FLUSHANDLES = 7008, // Failed to flush registry handles. |
58 SBOX_FATAL_CACHEDISABLE = 7009, // Failed to forbid HCKU caching. | 56 SBOX_FATAL_CACHEDISABLE = 7009, // Failed to forbid HCKU caching. |
59 SBOX_FATAL_CLOSEHANDLES = 7010, // Failed to close pending handles. | 57 SBOX_FATAL_CLOSEHANDLES = 7010 // Failed to close pending handles. |
60 SBOX_FATAL_MITIGATION = 7011 // Could not set the mitigation policy. | |
61 }; | 58 }; |
62 | 59 |
63 class BrokerServices; | 60 class BrokerServices; |
64 class TargetServices; | 61 class TargetServices; |
65 | 62 |
66 // Contains the pointer to a target or broker service. | 63 // Contains the pointer to a target or broker service. |
67 struct SandboxInterfaceInfo { | 64 struct SandboxInterfaceInfo { |
68 BrokerServices* broker_services; | 65 BrokerServices* broker_services; |
69 TargetServices* target_services; | 66 TargetServices* target_services; |
70 }; | 67 }; |
(...skipping 10 matching lines...) Expand all Loading... |
81 INTERCEPTION_EAT, | 78 INTERCEPTION_EAT, |
82 INTERCEPTION_SIDESTEP, // Preamble patch | 79 INTERCEPTION_SIDESTEP, // Preamble patch |
83 INTERCEPTION_SMART_SIDESTEP, // Preamble patch but bypass internal calls | 80 INTERCEPTION_SMART_SIDESTEP, // Preamble patch but bypass internal calls |
84 INTERCEPTION_UNLOAD_MODULE, // Unload the module (don't patch) | 81 INTERCEPTION_UNLOAD_MODULE, // Unload the module (don't patch) |
85 INTERCEPTION_LAST // Placeholder for last item in the enumeration | 82 INTERCEPTION_LAST // Placeholder for last item in the enumeration |
86 }; | 83 }; |
87 | 84 |
88 } // namespace sandbox | 85 } // namespace sandbox |
89 | 86 |
90 #endif // SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ | 87 #endif // SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ |
OLD | NEW |