Can not make port forwarding from Cygwin when ControlMaster/ControlPath used.

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Feb 14 08:53:00 GMT 2012


On Feb 13 19:50, Charles Wilson wrote:
> On 2/13/2012 9:00 AM, Corinna Vinschen wrote:
> > Btw., connection sharing doesn't work on Cygwin.  For this to work we
> > need descriptor passing over AF_LOCAL sockets, which isn't implemented
> > in Cygwin.
> 
> Yes, please!  (I know, I know, SHTDI).
>    http://cygwin.com/ml/cygwin/2009-10/msg00397.html
> See Corinna's and cgf's comments downthread.

...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.


> 
> --
> Chuck
> 
> --
> 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

-- 
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



More information about the Cygwin mailing list