 |
|
 |
|
On Tue, 14 Feb 2012 09:53:18 +0100, Corinna Vinschen <...@cygwin.com
...and in contrast to what Dave replied even the DuplicateHandle part is
not trivial. It requires one of the processes to have PROCESS_DUP_HANDLE
rights for the other process. But since you're connected over a socket,
you don't know the process ID of your peer(*). And then, either one of
the processes is an admin process, or both processes belong to the same
user account, or one of the processes must know the SID of the peer
process and open up its process for PROCESS_DUP_HANDLE access to that
user account.
Corinna
(*) getpeereid only works for the listening/connecting processes, not for
forked child processes thereof.
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
|
|
 |
|
 |
|
|