| 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 27 matching lines...) Expand all Loading... |
| 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. | 46 // Initializing or updating ProcThreadAttributes failed. |
| 47 SBOX_ERROR_PROC_THREAD_ATTRIBUTES = 17, | 47 SBOX_ERROR_PROC_THREAD_ATTRIBUTES = 17, |
| 48 // Error in creating process. |
| 49 SBOX_ERROR_CREATE_PROCESS = 18, |
| 48 // Placeholder for last item of the enum. | 50 // Placeholder for last item of the enum. |
| 49 SBOX_ERROR_LAST | 51 SBOX_ERROR_LAST |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 // 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 |
| 53 // target will be forcibly terminated. These are the process exit codes. | 55 // target will be forcibly terminated. These are the process exit codes. |
| 54 enum TerminationCodes { | 56 enum TerminationCodes { |
| 55 SBOX_FATAL_INTEGRITY = 7006, // Could not set the integrity level. | 57 SBOX_FATAL_INTEGRITY = 7006, // Could not set the integrity level. |
| 56 SBOX_FATAL_DROPTOKEN = 7007, // Could not lower the token. | 58 SBOX_FATAL_DROPTOKEN = 7007, // Could not lower the token. |
| 57 SBOX_FATAL_FLUSHANDLES = 7008, // Failed to flush registry handles. | 59 SBOX_FATAL_FLUSHANDLES = 7008, // Failed to flush registry handles. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 83 INTERCEPTION_EAT, | 85 INTERCEPTION_EAT, |
| 84 INTERCEPTION_SIDESTEP, // Preamble patch | 86 INTERCEPTION_SIDESTEP, // Preamble patch |
| 85 INTERCEPTION_SMART_SIDESTEP, // Preamble patch but bypass internal calls | 87 INTERCEPTION_SMART_SIDESTEP, // Preamble patch but bypass internal calls |
| 86 INTERCEPTION_UNLOAD_MODULE, // Unload the module (don't patch) | 88 INTERCEPTION_UNLOAD_MODULE, // Unload the module (don't patch) |
| 87 INTERCEPTION_LAST // Placeholder for last item in the enumeration | 89 INTERCEPTION_LAST // Placeholder for last item in the enumeration |
| 88 }; | 90 }; |
| 89 | 91 |
| 90 } // namespace sandbox | 92 } // namespace sandbox |
| 91 | 93 |
| 92 #endif // SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ | 94 #endif // SANDBOX_WIN_SRC_SANDBOX_TYPES_H_ |
| OLD | NEW |