diff options
author | ananta <ananta@chromium.org> | 2015-05-05 19:20:43 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-06 02:21:18 +0000 |
commit | 5946abe33a0f5055caa4cfaca66e1d28736bd103 (patch) | |
tree | a728b05015b3bf0500af36bee426b764d47395e6 /tools/json_schema_compiler/cc_generator.py | |
parent | d4acad5259f0bbaaa0cd73eaadca13688ac87e8a (diff) | |
download | chromium_src-5946abe33a0f5055caa4cfaca66e1d28736bd103.zip chromium_src-5946abe33a0f5055caa4cfaca66e1d28736bd103.tar.gz chromium_src-5946abe33a0f5055caa4cfaca66e1d28736bd103.tar.bz2 |
Provide a facility for sharing Window handles with target processes launched 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}
Diffstat (limited to 'tools/json_schema_compiler/cc_generator.py')
0 files changed, 0 insertions, 0 deletions