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 #ifndef SANDBOX_SRC_ACL_H_ | 5 #ifndef SANDBOX_SRC_ACL_H_ |
6 #define SANDBOX_SRC_ACL_H_ | 6 #define SANDBOX_SRC_ACL_H_ |
7 | 7 |
8 #include <AccCtrl.h> | 8 #include <AccCtrl.h> |
9 #include <windows.h> | 9 #include <windows.h> |
10 | 10 |
| 11 #include "base/memory/free_deleter.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "sandbox/win/src/sid.h" | 13 #include "sandbox/win/src/sid.h" |
13 | 14 |
14 namespace sandbox { | 15 namespace sandbox { |
15 | 16 |
16 // Returns the default dacl from the token passed in. | 17 // Returns the default dacl from the token passed in. |
17 bool GetDefaultDacl( | 18 bool GetDefaultDacl( |
18 HANDLE token, | 19 HANDLE token, |
19 scoped_ptr<TOKEN_DEFAULT_DACL, base::FreeDeleter>* default_dacl); | 20 scoped_ptr<TOKEN_DEFAULT_DACL, base::FreeDeleter>* default_dacl); |
20 | 21 |
(...skipping 14 matching lines...) Expand all Loading... |
35 // Adds an ACE represented by |known_sid|, |access_mode|, and |access| to | 36 // Adds an ACE represented by |known_sid|, |access_mode|, and |access| to |
36 // the dacl of the kernel object referenced by |object| and of |object_type|. | 37 // the dacl of the kernel object referenced by |object| and of |object_type|. |
37 bool AddKnownSidToObject(HANDLE object, SE_OBJECT_TYPE object_type, | 38 bool AddKnownSidToObject(HANDLE object, SE_OBJECT_TYPE object_type, |
38 const Sid& sid, ACCESS_MODE access_mode, | 39 const Sid& sid, ACCESS_MODE access_mode, |
39 ACCESS_MASK access); | 40 ACCESS_MASK access); |
40 | 41 |
41 } // namespace sandbox | 42 } // namespace sandbox |
42 | 43 |
43 | 44 |
44 #endif // SANDBOX_SRC_ACL_H_ | 45 #endif // SANDBOX_SRC_ACL_H_ |
OLD | NEW |