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

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

Issue 10783004: Move Windows Sandbox, trybots version (don't commit me!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to top of tree Created 8 years, 5 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/restricted_token_unittest.cc ('k') | sandbox/win/src/restricted_token_utils.cc » ('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
11 #include "sandbox/src/restricted_token.h" 11 #include "sandbox/win/src/restricted_token.h"
12 #include "sandbox/src/security_level.h" 12 #include "sandbox/win/src/security_level.h"
13 13
14 // Contains the utility functions to be able to create restricted tokens based 14 // Contains the utility functions to be able to create restricted tokens based
15 // on a security profiles. 15 // on a security profiles.
16 16
17 namespace sandbox { 17 namespace sandbox {
18 18
19 // The type of the token returned by the CreateNakedToken. 19 // The type of the token returned by the CreateNakedToken.
20 enum TokenType { 20 enum TokenType {
21 IMPERSONATION = 0, 21 IMPERSONATION = 0,
22 PRIMARY 22 PRIMARY
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 DWORD SetTokenIntegrityLevel(HANDLE token, IntegrityLevel integrity_level); 74 DWORD SetTokenIntegrityLevel(HANDLE token, IntegrityLevel integrity_level);
75 75
76 // Sets the integrity level on the current process on Vista. It returns without 76 // 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 77 // failing on XP. If the integrity level that you specify is greater than the
78 // current integrity level, the function will fail. 78 // current integrity level, the function will fail.
79 DWORD SetProcessIntegrityLevel(IntegrityLevel integrity_level); 79 DWORD SetProcessIntegrityLevel(IntegrityLevel integrity_level);
80 80
81 } // namespace sandbox 81 } // namespace sandbox
82 82
83 #endif // SANDBOX_SRC_RESTRICTED_TOKEN_UTILS_H__ 83 #endif // SANDBOX_SRC_RESTRICTED_TOKEN_UTILS_H__
OLDNEW
« no previous file with comments | « sandbox/win/src/restricted_token_unittest.cc ('k') | sandbox/win/src/restricted_token_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698