| 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_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 Loading... |
| 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_ |
| OLD | NEW |