Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(918)

Side by Side Diff: sandbox/win/src/sandbox_types.h

Issue 1000863006: Adding one more error code to convey process creation/spawn target error to the caller BrokerServic… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sandbox/win/src/broker_services.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_PROCESS_CREATE = 18,
jschuh 2015/03/24 22:58:55 This is a really stupid nit, but since the convent
Shrikant Kelkar 2015/03/24 23:11:45 Done.
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
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_
OLDNEW
« no previous file with comments | « sandbox/win/src/broker_services.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698