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

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

Issue 330373002: Reorder IntegrityLevel enum to be less confusing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_SRC_SECURITY_LEVEL_H_ 5 #ifndef SANDBOX_SRC_SECURITY_LEVEL_H_
6 #define SANDBOX_SRC_SECURITY_LEVEL_H_ 6 #define SANDBOX_SRC_SECURITY_LEVEL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace sandbox { 10 namespace sandbox {
11 11
12 // List of all the integrity levels supported in the sandbox. This is used 12 // List of all the integrity levels supported in the sandbox. This is used
13 // only on Windows Vista. You can't set the integrity level of the process 13 // only on Windows Vista+. You can't set the integrity level of the process
14 // in the sandbox to a level higher than yours. 14 // in the sandbox to a level higher than yours.
15 enum IntegrityLevel { 15 enum IntegrityLevel {
16 INTEGRITY_LEVEL_UNTRUSTED = 0,
17 INTEGRITY_LEVEL_BELOW_LOW,
18 INTEGRITY_LEVEL_LOW,
19 INTEGRITY_LEVEL_MEDIUM_LOW,
20 INTEGRITY_LEVEL_MEDIUM,
21 INTEGRITY_LEVEL_HIGH,
16 INTEGRITY_LEVEL_SYSTEM, 22 INTEGRITY_LEVEL_SYSTEM,
17 INTEGRITY_LEVEL_HIGH,
18 INTEGRITY_LEVEL_MEDIUM,
19 INTEGRITY_LEVEL_MEDIUM_LOW,
20 INTEGRITY_LEVEL_LOW,
21 INTEGRITY_LEVEL_BELOW_LOW,
22 INTEGRITY_LEVEL_UNTRUSTED,
23 INTEGRITY_LEVEL_LAST 23 INTEGRITY_LEVEL_LAST
rvargas (doing something else) 2014/06/16 19:16:57 Today we init variables to LAST, that has to chang
24 }; 24 };
25 25
26 // The Token level specifies a set of security profiles designed to 26 // The Token level specifies a set of security profiles designed to
27 // provide the bulk of the security of sandbox. 27 // provide the bulk of the security of sandbox.
28 // 28 //
29 // TokenLevel |Restricting |Deny Only |Privileges| 29 // TokenLevel |Restricting |Deny Only |Privileges|
30 // |Sids |Sids | | 30 // |Sids |Sids | |
31 // ----------------------------|--------------|----------------|----------| 31 // ----------------------------|--------------|----------------|----------|
32 // USER_LOCKDOWN | Null Sid | All | None | 32 // USER_LOCKDOWN | Null Sid | All | None |
33 // ----------------------------|--------------|----------------|----------| 33 // ----------------------------|--------------|----------------|----------|
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 // Sets the DLL search order to LOAD_LIBRARY_SEARCH_DEFAULT_DIRS. Additional 196 // Sets the DLL search order to LOAD_LIBRARY_SEARCH_DEFAULT_DIRS. Additional
197 // directories can be added via the Windows AddDllDirectory() function. 197 // directories can be added via the Windows AddDllDirectory() function.
198 // http://msdn.microsoft.com/en-us/library/windows/desktop/hh310515 198 // http://msdn.microsoft.com/en-us/library/windows/desktop/hh310515
199 // Must be enabled after startup. 199 // Must be enabled after startup.
200 const MitigationFlags MITIGATION_DLL_SEARCH_ORDER = 0x00000001ULL << 32; 200 const MitigationFlags MITIGATION_DLL_SEARCH_ORDER = 0x00000001ULL << 32;
201 201
202 } // namespace sandbox 202 } // namespace sandbox
203 203
204 #endif // SANDBOX_SRC_SECURITY_LEVEL_H_ 204 #endif // SANDBOX_SRC_SECURITY_LEVEL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698