From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31293 invoked by alias); 8 Mar 2019 16:21:46 -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 31286 invoked by uid 89); 8 Mar 2019 16:21:46 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=listener X-HELO: conssluserg-06.nifty.com Received: from conssluserg-06.nifty.com (HELO conssluserg-06.nifty.com) (210.131.2.91) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Mar 2019 16:21:44 +0000 Received: from Express5800-S70 (ntsitm424054.sitm.nt.ngn.ppp.infoweb.ne.jp [219.97.74.54]) (authenticated) by conssluserg-06.nifty.com with ESMTP id x28GLKcS012732 for ; Sat, 9 Mar 2019 01:21:21 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com x28GLKcS012732 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1552062081; bh=vgOsRvzuxZh1IqtJWgM+Ucj+NC28lVgaIXyg3iyx+mk=; h=Date:From:To:Subject:In-Reply-To:References:From; b=H+RUzFZfA5pTl4TdSriFKaOCLxnoArfAxs65y3G76eAeFTw7o6pFRJwHqsR1BiVGx TZWDer3rjRHiocLbkY+JdZX8cfzyCqxJqJIlatw3snuZYLRwP4X7r5hijLSjTmtcYu my9GqDtZoIvzynQzo7qIwXC+dAGmjNHAWJgV+pAMnpmjZ0cPCFU8X1acQuXxsHttkc nGQkIelIJzx35giklBzFGudG6uA0rQBBdNvgeiUkXnwknUGO6GD7jNjjuxvWJBq/fU p8az2YQ3YshnQs6PmtE5Eja3KkUJuv1lirX6+5gwThP8OVMtvd1nimiugs28uHdXqd g8soN/qF9Ditg== Date: Fri, 08 Mar 2019 16:21:00 -0000 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: Logging-in using ssh elevates the user privilege. Message-Id: <20190309012127.d42ac7108c1fb29f7108e606@nifty.ne.jp> In-Reply-To: <20190308155635.GP3785@calimero.vinschen.de> References: <20190307010000.fc28b73739c2dd66e609982b@nifty.ne.jp> <381052629.20190307141955@yandex.ru> <51233666.20190307182445@yandex.ru> <20190308230138.b7f6b5ac90c9a14cde2647c1@nifty.ne.jp> <20190308141118.GM3785@calimero.vinschen.de> <20190309003908.52b91dd113d07f9ee1025d4c@nifty.ne.jp> <20190308155635.GP3785@calimero.vinschen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-03/txt/msg00174.txt.bz2 On Fri, 8 Mar 2019 16:56:35 +0100 Corinna Vinschen wrote: > > Does this affect to listen() as well? > > No, listen isn't affected. The cause is failure of setsockopt(). setsockopt() before accept() failed with EALREADY. I looked into fhandler_sock_local.cc. 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. -- Takashi Yano -- 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