OLD | NEW |
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 #include "sandbox/win/src/acl.h" | 5 #include "sandbox/win/src/acl.h" |
6 | 6 |
7 #include <aclapi.h> | 7 #include <aclapi.h> |
8 #include <sddl.h> | 8 #include <sddl.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/free_deleter.h" |
11 | 12 |
12 namespace sandbox { | 13 namespace sandbox { |
13 | 14 |
14 bool GetDefaultDacl( | 15 bool GetDefaultDacl( |
15 HANDLE token, | 16 HANDLE token, |
16 scoped_ptr<TOKEN_DEFAULT_DACL, base::FreeDeleter>* default_dacl) { | 17 scoped_ptr<TOKEN_DEFAULT_DACL, base::FreeDeleter>* default_dacl) { |
17 if (token == NULL) | 18 if (token == NULL) |
18 return false; | 19 return false; |
19 | 20 |
20 DCHECK(default_dacl != NULL); | 21 DCHECK(default_dacl != NULL); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 ::LocalFree(new_dacl); | 117 ::LocalFree(new_dacl); |
117 ::LocalFree(descriptor); | 118 ::LocalFree(descriptor); |
118 | 119 |
119 if (ERROR_SUCCESS != result) | 120 if (ERROR_SUCCESS != result) |
120 return false; | 121 return false; |
121 | 122 |
122 return true; | 123 return true; |
123 } | 124 } |
124 | 125 |
125 } // namespace sandbox | 126 } // namespace sandbox |
OLD | NEW |