DynamoRIO / dynamorio

Dynamic Instrumentation Tool Platform
Other
2.59k stars 553 forks source link

add API routines for OpenProcess and DuplicateHandle? #1106

Open derekbruening opened 9 years ago

derekbruening commented 9 years ago

From bruen...@google.com on March 07, 2013 16:58:32

For a use case of using a pipe for inter-process communication we may want to provide the necessary calls to duplicate the handle. Or, we could just assume the private library isolation and/or redirection (both routines are on the redir hotlist and one is implemented)?

Original issue: http://code.google.com/p/dynamorio/issues/detail?id=1106

derekbruening commented 9 years ago

From rnk@google.com on March 08, 2013 06:24:18

OpenProcess doesn't really port well to other OSs, so I'd rely on library redirection for that. We don't need to invent a new name and signature for it.

It might be useful to have a portable DuplicateHandle/dup, though. Or even a portable CreateProcess/fork+exec[+dup].