delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/03/08/12:57:43

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=xre6kHtveo9qrCCtAqSk5dyIIO6MWTHrOdkUChossMYz3zeLxx2cg
mnwpiDR9mPpZ3dHUuyfRNuOsaxUGLi+TNMYzSVdA/a2SV8vx7t2RNnZgBZ2PLP/6
JFDAsNogM3b5fqOP8qYmL8iRgybTpOGAm9rdWLYXmwe8qJaR7XpbrE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=CvGA59wFPA7HdJvkqAV5a5YN4Fc=; b=o7zYJfHAo6L10q219sKI/Niqmqr4
b/cOGMYK1JzE2jaFAtOVEVEfgEVLr5WbHsbUU+xZ1kZE8DRVa48qEqS2Yh/ZcNEQ
cDjI7eR//USnhaxBTSBTYhT2hBpctCohgu08sL1cuwvdqT53qJwfKqzULYZPWlUK
ctMEQSbkN4nf19k=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 spammy=H*F:D*gov, H*r:Unknown, screen, 201903
X-HELO: blaine.gmane.org
To: cygwin AT cygwin DOT com
From: Andrew Schulman <schulman DOT andrew AT epa DOT gov>
Subject: Re: Logging-in using ssh elevates the user privilege.
Date: Fri, 08 Mar 2019 12:57:20 -0500
Message-ID: <17b58eds2gm17qs2sjmmbhhrnqka5htm9s@4ax.com>
References: <20190307010000 DOT fc28b73739c2dd66e609982b AT nifty DOT ne DOT jp> <381052629 DOT 20190307141955 AT yandex DOT ru> <51233666 DOT 20190307182445 AT yandex DOT ru> <20190308230138 DOT b7f6b5ac90c9a14cde2647c1 AT nifty DOT ne DOT jp> <20190308141118 DOT GM3785 AT calimero DOT vinschen DOT de> <20190308234638 DOT 0ada919bc31803cf064ca720 AT nifty DOT ne DOT jp> <20190308145247 DOT GO3785 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
X-IsSubscribed: yes

> Hi Andrew,
> 
> On Mar  8 23:46, Takashi Yano wrote:
> > Hi Corinna,
> > 
> > Thanks for your advice.
> > 
> > On Fri, 8 Mar 2019 15:11:18 +0100 Corinna Vinschen wrote:
> > > > In Linux, connect() in the client returns befor the
> > > > server calls accept(). However, in cygwin, connect()
> > > > does not return until the server calls accept().
> > > 
> > > This is a result of the handshake to exchange credentials for
> > > getpeereid().  To workaround this issue, try building screen
> > > with a tweak.  Server and as client should call
> > > 
> > >   setsockopt (sock, SOL_SOCKET, SO_PEERCRED, NULL, 0);
> > > 
> > > before calling accept or connect.
> > 
> > Following your advice, I tried the patch attached and
> > confirmed the problem regarding -Q option is solved.
> 
> any chance to rebuild screen with the patch from
> https://cygwin.com/ml/cygwin/2019-03/msg00167.html

Sure, will do. Thanks to both of y'all for solving this.
Andrew


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019