| OLD | NEW |
| 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 #include "sandbox/src/restricted_token.h" | 5 #include "sandbox/win/src/restricted_token.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "sandbox/src/acl.h" | 10 #include "sandbox/win/src/acl.h" |
| 11 #include "sandbox/src/win_utils.h" | 11 #include "sandbox/win/src/win_utils.h" |
| 12 | 12 |
| 13 | 13 |
| 14 namespace sandbox { | 14 namespace sandbox { |
| 15 | 15 |
| 16 unsigned RestrictedToken::Init(const HANDLE effective_token) { | 16 unsigned RestrictedToken::Init(const HANDLE effective_token) { |
| 17 DCHECK(!init_); | 17 DCHECK(!init_); |
| 18 if (init_) | 18 if (init_) |
| 19 return ERROR_ALREADY_INITIALIZED; | 19 return ERROR_ALREADY_INITIALIZED; |
| 20 | 20 |
| 21 if (effective_token) { | 21 if (effective_token) { |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 | 457 |
| 458 return ERROR_SUCCESS; | 458 return ERROR_SUCCESS; |
| 459 } | 459 } |
| 460 | 460 |
| 461 unsigned RestrictedToken::SetIntegrityLevel(IntegrityLevel integrity_level) { | 461 unsigned RestrictedToken::SetIntegrityLevel(IntegrityLevel integrity_level) { |
| 462 integrity_level_ = integrity_level; | 462 integrity_level_ = integrity_level; |
| 463 return ERROR_SUCCESS; | 463 return ERROR_SUCCESS; |
| 464 } | 464 } |
| 465 | 465 |
| 466 } // namespace sandbox | 466 } // namespace sandbox |
| OLD | NEW |