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/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 | 11 |
12 namespace sandbox { | 12 namespace sandbox { |
13 | 13 |
14 bool GetDefaultDacl(HANDLE token, | 14 bool GetDefaultDacl(HANDLE token, |
15 scoped_ptr_malloc<TOKEN_DEFAULT_DACL>* default_dacl) { | 15 scoped_ptr_malloc<TOKEN_DEFAULT_DACL>* default_dacl) { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 ::LocalFree(new_dacl); | 113 ::LocalFree(new_dacl); |
114 ::LocalFree(descriptor); | 114 ::LocalFree(descriptor); |
115 | 115 |
116 if (ERROR_SUCCESS != result) | 116 if (ERROR_SUCCESS != result) |
117 return false; | 117 return false; |
118 | 118 |
119 return true; | 119 return true; |
120 } | 120 } |
121 | 121 |
122 } // namespace sandbox | 122 } // namespace sandbox |
OLD | NEW |