forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide a facility for sharing Window handles with target processes l…
…aunched by the sandbox. The sandbox currently allows us to share the stderr and stdout handles with the target process. With the AppContainer based sandbox becoming available on Windows 8+ we want a way to share named handles with the target as it won't be able to open these names as its kernel object namespace is partitioned. This functionality is provided in the form of a virtual function AddHandleToShare in the TargetPolicy class. This is implemented by the PolicyBase class in the sandbox which adds the handle to a list. When the target is launched we pass these handles over in the STARTUPINFOEX structure. The handle can be passed via a command line or via any IPC based mechanism. Only restriction being that the handle needs to be inheritable. Changed the SharedMemory class to provide a way to create inheritable handle by adding a setter function set_inheritable. Defaults to false. BUG=481285 R=cpu TEST=Covered by sbox_integration_test. PolicyTargetTest.ShareHandleTest Review URL: https://codereview.chromium.org/1130543002 Cr-Commit-Position: refs/heads/master@{#328469}
- Loading branch information
ananta
authored and
Commit bot
committed
May 6, 2015
1 parent
d4acad5
commit 5946abe
Showing
6 changed files
with
147 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters