diff options
author | jschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-31 02:12:33 +0000 |
---|---|---|
committer | jschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-31 02:12:33 +0000 |
commit | 6a7da76aba9584bed52f91689fd59ac1807fb2d4 (patch) | |
tree | 525c6d1da7936adf18ecb2d8ea96b0dc02f5b070 /sandbox/src/sandbox.h | |
parent | 42693665321217849740a80166d559367b852c97 (diff) | |
download | chromium_src-6a7da76aba9584bed52f91689fd59ac1807fb2d4.zip chromium_src-6a7da76aba9584bed52f91689fd59ac1807fb2d4.tar.gz chromium_src-6a7da76aba9584bed52f91689fd59ac1807fb2d4.tar.bz2 |
Add a sandbox API for broker handle duplication
BUG=119250
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=129627
Review URL: https://chromiumcodereview.appspot.com/9838083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/src/sandbox.h')
-rw-r--r-- | sandbox/src/sandbox.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sandbox/src/sandbox.h b/sandbox/src/sandbox.h index bbc4f77..683bda7 100644 --- a/sandbox/src/sandbox.h +++ b/sandbox/src/sandbox.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -126,6 +126,20 @@ class TargetServices { // information about the current state of the process, such as whether // LowerToken has been called or not. virtual ProcessState* GetState() = 0; + + // Requests the broker to duplicate the supplied handle into the target + // process. The target process must be an active sandbox child process + // and the source process must have a corresponding policy allowing + // handle duplication for this object type. + // Returns: + // ALL_OK if successful. All other return values imply failure. + // If the return is ERROR_GENERIC, you can call ::GetLastError() to get + // more information. + virtual ResultCode DuplicateHandle(HANDLE source_handle, + DWORD target_process_id, + HANDLE* target_handle, + DWORD desired_access, + DWORD options) = 0; }; } // namespace sandbox |