From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60614 invoked by alias); 8 Mar 2019 14:11:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 60605 invoked by uid 89); 8 Mar 2019 14:11:23 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-102.7 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=screen, H*F:D*cygwin.com X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.130) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Mar 2019 14:11:22 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Mo7Bb-1giGgn41mt-00pZdD for ; Fri, 08 Mar 2019 15:11:19 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 2B6E9A80446; Fri, 8 Mar 2019 15:11:18 +0100 (CET) Date: Fri, 08 Mar 2019 14:11:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Logging-in using ssh elevates the user privilege. Message-ID: <20190308141118.GM3785@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20190307010000.fc28b73739c2dd66e609982b@nifty.ne.jp> <381052629.20190307141955@yandex.ru> <51233666.20190307182445@yandex.ru> <20190308230138.b7f6b5ac90c9a14cde2647c1@nifty.ne.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/If7Wv41KAW8wPhq" Content-Disposition: inline In-Reply-To: <20190308230138.b7f6b5ac90c9a14cde2647c1@nifty.ne.jp> User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-03/txt/msg00165.txt.bz2 --/If7Wv41KAW8wPhq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1287 On Mar 8 23:01, Takashi Yano wrote: > Hello, >=20 > Thank you for the information. >=20 > On Thu, 7 Mar 2019 18:24:45 +0300 Andrey Repin wrote: > > > GNU screen freeze without much of an effort under Cygwin. > > > Try detaching from running screen and then running screen -ls. > >=20 > > Past discussion > > http://sourceware.org/ml/cygwin/2017-05/msg00448.html > > mid:16810313565.20170527142723@yandex.ru >=20 > I looked into this problem of GNU screen and found the > cause is very different from that of the problem I had > reported. >=20 > The problem I had reported is due to the failure of > sending signal, which is caused by mismatch of tokens > between ssh session and mintty session. >=20 > On the other hand, the problem you mentioned is due > to the difference in the behaviour of socket API. >=20 > 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. Corinna --=20 Corinna Vinschen Cygwin Maintainer --/If7Wv41KAW8wPhq Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlyCeAUACgkQ9TYGna5E T6AUNhAAoFXRGVuVc7A9Cde4Cwd4DQzx7AWs+RlInzo8jRS/auQN2x99HdMrsOKq RsrdlmphhNBW0CsXE4NHJVpOjr1AdUzb2cWjTpxN3udLgBJQE9c6Xu4ek7MUHGve c6hbk4Ub8KO3fxHCnJUAZOLRfH9R2lpuJ5tvpzCSJ9MveQCLNd2BYYhHYbBdQf8O /PAdeX161mxCryGbvTd4oOavM0nWu9owanXk0ZElvCBWbJFa4skNXoSa4lqWWp2r hUit5OnlLHKAiln32N2LOqlAYvW1PVsNABWw3oFzFy1hm0uHtyZ4QjRJYfrYQv8g FgONmfNuzoJ6zuO59D8Kbt9eENbAN5rMsxCnOaxr39BQlaYnuo/UXOrxCLEzaMQD gJkWuqM7slCodwRVNZ/7yLS1OgdgiFnw2Yo3k1fxFJRhjD9HPVzCGtiwVeovQEze vTIvJybY0YKdL7JY/E0CGa+zq/eE13XaDS2jBJS7kYNzSCmOxlLNfjSwMG7H8LzK 2E+yvhUPQICabs8Jw4xS/rODIx34o4q7Ufimtp76h5eSSOio+Kv+EirwDP3pLyAG 4ZDZ2KtKRFZGmlUI6WCYChYoATV+zm+hoLwQt/vDm4mxaeGTQPI8sP9rq/xTkR4V qvRChMA0kPsJYVKpOHgMx3KWW8uuB7V5etRlL3JcWwtTJn5umBk= =u0f9 -----END PGP SIGNATURE----- --/If7Wv41KAW8wPhq--