diff options
author | jschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-24 02:23:15 +0000 |
---|---|---|
committer | jschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-24 02:23:15 +0000 |
commit | 052209eeec814f1421877fe8947bda85fb1209c1 (patch) | |
tree | 93dc5e0081f0b924eee89be2ef5293bcdeee613f /sandbox/src | |
parent | 9c207e464002d6ccbb2eb33d75f5002d5d46f22e (diff) | |
download | chromium_src-052209eeec814f1421877fe8947bda85fb1209c1.zip chromium_src-052209eeec814f1421877fe8947bda85fb1209c1.tar.gz chromium_src-052209eeec814f1421877fe8947bda85fb1209c1.tar.bz2 |
Retain permissions on duplicated handle in DuplicateHandleProxy
This is a speculative fix because I think we may be dying due to a hook outside our control.
BUG=129434
Review URL: https://chromiumcodereview.appspot.com/10447006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138710 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/src')
-rw-r--r-- | sandbox/src/handle_dispatcher.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/src/handle_dispatcher.cc b/sandbox/src/handle_dispatcher.cc index 52ecb4a..1d74ed1 100644 --- a/sandbox/src/handle_dispatcher.cc +++ b/sandbox/src/handle_dispatcher.cc @@ -53,7 +53,7 @@ bool HandleDispatcher::DuplicateHandleProxy(IPCInfo* ipc, base::win::ScopedHandle handle; if (!::DuplicateHandle(ipc->client_info->process, source_handle, ::GetCurrentProcess(), handle.Receive(), - 0, FALSE, 0)) { + 0, FALSE, DUPLICATE_SAME_ACCESS)) { ipc->return_info.win32_result = ::GetLastError(); return false; } |