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

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

Issue 1821193002: Added a policy option to restrict the default DACL for tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added access mask to open process test Created 4 years, 8 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
« no previous file with comments | « sandbox/win/src/restricted_token_utils.cc ('k') | sandbox/win/src/sandbox_policy_base.h » ('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) 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_WIN_SRC_SANDBOX_POLICY_H_ 5 #ifndef SANDBOX_WIN_SRC_SANDBOX_POLICY_H_
6 #define SANDBOX_WIN_SRC_SANDBOX_POLICY_H_ 6 #define SANDBOX_WIN_SRC_SANDBOX_POLICY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 247
248 // Adds a handle that will be closed in the target process after lockdown. 248 // Adds a handle that will be closed in the target process after lockdown.
249 // A NULL value for handle_name indicates all handles of the specified type. 249 // A NULL value for handle_name indicates all handles of the specified type.
250 // An empty string for handle_name indicates the handle is unnamed. 250 // An empty string for handle_name indicates the handle is unnamed.
251 virtual ResultCode AddKernelObjectToClose(const wchar_t* handle_type, 251 virtual ResultCode AddKernelObjectToClose(const wchar_t* handle_type,
252 const wchar_t* handle_name) = 0; 252 const wchar_t* handle_name) = 0;
253 253
254 // Adds a handle that will be shared with the target process. Does not take 254 // Adds a handle that will be shared with the target process. Does not take
255 // ownership of the handle. 255 // ownership of the handle.
256 virtual void AddHandleToShare(HANDLE handle) = 0; 256 virtual void AddHandleToShare(HANDLE handle) = 0;
257
258 // Locks down the default DACL of the created lockdown and initial tokens
259 // to restrict what other processes are allowed to access a process' kernel
260 // resources.
261 virtual void SetLockdownDefaultDacl() = 0;
257 }; 262 };
258 263
259 } // namespace sandbox 264 } // namespace sandbox
260 265
261 266
262 #endif // SANDBOX_WIN_SRC_SANDBOX_POLICY_H_ 267 #endif // SANDBOX_WIN_SRC_SANDBOX_POLICY_H_
OLDNEW
« no previous file with comments | « sandbox/win/src/restricted_token_utils.cc ('k') | sandbox/win/src/sandbox_policy_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698