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

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

Issue 330853002: Add UIPI support for sandbox alternate desktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for commit 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 | « sandbox/win/src/integrity_level_test.cc ('k') | sandbox/win/src/sandbox_policy_base.h » ('j') | 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_RESTRICTED_TOKEN_UTILS_H__ 5 #ifndef SANDBOX_SRC_RESTRICTED_TOKEN_UTILS_H__
6 #define SANDBOX_SRC_RESTRICTED_TOKEN_UTILS_H__ 6 #define SANDBOX_SRC_RESTRICTED_TOKEN_UTILS_H__
7 7
8 #include <accctrl.h> 8 #include <accctrl.h>
9 #include <windows.h> 9 #include <windows.h>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // Sets the integrity label on a object handle. 66 // Sets the integrity label on a object handle.
67 DWORD SetObjectIntegrityLabel(HANDLE handle, SE_OBJECT_TYPE type, 67 DWORD SetObjectIntegrityLabel(HANDLE handle, SE_OBJECT_TYPE type,
68 const wchar_t* ace_access, 68 const wchar_t* ace_access,
69 const wchar_t* integrity_level_sid); 69 const wchar_t* integrity_level_sid);
70 70
71 // Sets the integrity level on a token. This is only valid on Vista. It returns 71 // Sets the integrity level on a token. This is only valid on Vista. It returns
72 // without failing on XP. If the integrity level that you specify is greater 72 // without failing on XP. If the integrity level that you specify is greater
73 // than the current integrity level, the function will fail. 73 // than the current integrity level, the function will fail.
74 DWORD SetTokenIntegrityLevel(HANDLE token, IntegrityLevel integrity_level); 74 DWORD SetTokenIntegrityLevel(HANDLE token, IntegrityLevel integrity_level);
75 75
76 // Returns the integrity level SDDL string associated with a given
77 // IntegrityLevel value.
78 const wchar_t* GetIntegrityLevelString(IntegrityLevel integrity_level);
79
76 // Sets the integrity level on the current process on Vista. It returns without 80 // Sets the integrity level on the current process on Vista. It returns without
77 // failing on XP. If the integrity level that you specify is greater than the 81 // failing on XP. If the integrity level that you specify is greater than the
78 // current integrity level, the function will fail. 82 // current integrity level, the function will fail.
79 DWORD SetProcessIntegrityLevel(IntegrityLevel integrity_level); 83 DWORD SetProcessIntegrityLevel(IntegrityLevel integrity_level);
80 84
81 } // namespace sandbox 85 } // namespace sandbox
82 86
83 #endif // SANDBOX_SRC_RESTRICTED_TOKEN_UTILS_H__ 87 #endif // SANDBOX_SRC_RESTRICTED_TOKEN_UTILS_H__
OLDNEW
« no previous file with comments | « sandbox/win/src/integrity_level_test.cc ('k') | sandbox/win/src/sandbox_policy_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698