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:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=Sjg/r6hkP6/MDEQ7O2seY2NTiPTs6aXDCUEPSgUmMqMiHYEBGzB3y RX0RMv8MCG1ISp48HK2da3y8n0/vL6ukVE+6D8psnPKmx2G+CGReVbopH8V9bq0q AH0kIrdryoIm/Ww1VnAa4WHAnkTmvys0nFIVOHrp6uzK5L33UZCyVo= 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:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=r5iI3O4wvSEYBhsTR1uir5XkrKU=; b=W6W3X/Jlovoz3xBGKmvFYmvchDyh 5YlDnulYjCY0cl0q1TaK25zt1bGJsi9UpxZ7rse/1m64wnrbGUJgk+RHMv1Klu5V zu6btuTAilcqcmKnCl4BGEQTnw5dSInj/VQEc5DSW4fKc5UU4uZv7O1ZxGnVTQYr 8iXI5tM3VuNStxg= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-102.3 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*F:D*cygwin.com X-HELO: mout.kundenserver.de Date: Fri, 8 Mar 2019 18:14:12 +0100 From: Corinna Vinschen To: Takashi Yano Cc: cygwin AT cygwin DOT com Subject: Re: Logging-in using ssh elevates the user privilege. Message-ID: <20190308171412.GQ3785@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: Takashi Yano , cygwin AT cygwin DOT 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> <20190309003908 DOT 52b91dd113d07f9ee1025d4c AT nifty DOT ne DOT jp> <20190308155635 DOT GP3785 AT calimero DOT vinschen DOT de> <20190309012127 DOT d42ac7108c1fb29f7108e606 AT nifty DOT ne DOT jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vAr1W/eR4LdSeo08" Content-Disposition: inline In-Reply-To: <20190309012127.d42ac7108c1fb29f7108e606@nifty.ne.jp> User-Agent: Mutt/1.11.3 (2019-02-01) --vAr1W/eR4LdSeo08 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 9 01:21, Takashi Yano wrote: > On Fri, 8 Mar 2019 16:56:35 +0100 Corinna Vinschen wrote: > > > Does this affect to listen() as well? > >=20 > > No, listen isn't affected. >=20 > The cause is failure of setsockopt(). > setsockopt() before accept() failed with EALREADY. >=20 > I looked into fhandler_sock_local.cc. >=20 > In fhandler_socket_local::af_local_set_no_getpeereid(), > connect_state() is checked if it is 'unconnected', however, > it is 'listener' after listen() is called. So it failed. Yeah, right. I misunderstood your question, sorry. Corinna --=20 Corinna Vinschen Cygwin Maintainer --vAr1W/eR4LdSeo08 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlyCouQACgkQ9TYGna5E T6A7Ag/+NHB5FypO/vL/lrQwhYC4nkUknhBLP6qasdYovZpOMjji70BAWqxiK4Ow 9fTXB/N/G5wXLDvrEZP/qfyms3EyEPGF2COTeoXDT4mGhsOFnSl7KFoSLckyxiDm HSsZk/V/cB+uMfLTx6a9MxZnN04lUSoPREKCcuXY0JzSVngoBjGj7/bWuUtK1dEh KxDieWvy6g1xMyZcsDZ4IjL+yw59aYhNGov/ZqqI7+70ac7urAVmekNjlXPyW1J3 dbUtvd0PNvBotcne1JPEQXCybhxR3QvySK/kkk6GLsxBQvwheineeLIKduvVlLB4 ch7Rr6AjKDq4ln/xJPpKXJ4VmH/kCabAW+5ZGP+cQovJCNnhtxLinwLdbAKCGCf5 qj4pvvkrEKTsTUlwKBLh7k9M3U9ZlpDYWPO2JQmXF46uUSoP/hvSyKvpf1eO8hop WraqlNozijMw72CWnuRgxdhHbUZy/cXh7/5j8o2LpVReYgt5WvyDKoCBuv0IGI9W GYkA4F4/VjRI0fHGO7Fc5hUbzX9S5T7D1Y++gucVBq4NZ1srq1ma7qEM0b46zIvv Vv/OjvzZmhDIWeJJ1CJtveaA5W7D2vsTMt1VJveOmyDyGV9sfGOim2RKPt7Lfptu eA1YNLNVbKa88oit8cQNJ3Mgkp34OHO2B8Nom+uBSwpZPypK64Q= =URH+ -----END PGP SIGNATURE----- --vAr1W/eR4LdSeo08--