X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9818A3858421 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1701885093; bh=n0S4l8/GivgNzJISg2FyHSQOOG+cLL0GC4+7VwUjkNA=; h=Date:To:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=XKX7ezyuKltgZt5anKBo5+iYr2q7Yapjk9wNXi/901r6/1G263SsBBJA4Vo45Xk28 jYZi/zROYsh9nxWRn+q67VLEroFthQgJS+AaHa8jMPdnOIZuLtTAbGU1HuTrMamoYQ 7Hbw6TbVoQzPp5d+Z3SZy/KJFy84GtavSnWSWfYg= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 55B713857BB0 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 55B713857BB0 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701885079; cv=none; b=Ly4q5XSFIRzl+SG41mcObj73xaGurv2Uta0/X+qJ3nEEwj2iRN2VMp4SaNJb6y+Bialr4hFjg46ZVwa58f+UC2CU/Y20acX0oQOOVI1IE9jm5Qhx2ubpvrl1yvnPmMUv+kv0OdXDYVQGvmw8evHlBzYcgVyMMamSXZMu+U5IXxU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701885079; c=relaxed/simple; bh=nc0AggalKNDmoLo9yfCJnZazaFQ6tguVeqa7rcHbX0o=; h=DKIM-Signature:Date:From:To:Message-ID:Subject:MIME-Version; b=ezKgUVuB/lPvv4t0STeBg3ZEK1O/vljj55qko6LiYT6FuedW3hF0dpmrcu4G0PSiDCJ72RCbec8NMiJpf/ZQ9Amf5nKvBuw2IJdqkLlRyCy/LiY14CH6/c4bIh26i2epSbG+JLHZvq0g+rCKaJKiD7KGZrcZtoTu8UKtd6Q2eDA= ARC-Authentication-Results: i=1; server2.sourceware.org X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1701885074; bh=NfKY7OzomMTQBIRaHQLKyJ0bEWS6c6K3hqfm0wSbd4Z=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=XVyrXkFwgmwFLeuJ9m5HMnFBajHUAjxPwWKLj4l8DUdLDxlJFNngedoXHA7UnulG3giItTOA+y0jyURJKuuL4GbgynUykFKyMEtvYoi0UqQgqTkeJfEoGhuwK07p5kQSW6Bk6luQgWTjXvnGl8LT70gD2LSHK2AzNaqjMRPJMy9jK6khsjLDbyMSJTAAWoWR735PWdSThsEG83B9ylSoTHoSCbJJSY/HtgJSf3tFk0/1XX8StgAiqNo62No4ycWt21fND5/9TdgT0T4PT+loI2gAmAR6pJvPauQWs7OrStLRksj0luc7y9Nmm2iFp0iYc3Pe6Wq7EEmSprtxhqMpwg== X-YMail-OSG: QlswpygVM1n7f6XkwTyuoj9iuyQFFImpb1CA_RFApyc1e6wP0e_oNlmH2ngK3yG EVoQmtANXiwXNvC0ZkOuUP4QTBktdlouNs3QfDAbh9jOL_mGhEYKE6r21d6I7Oh3LbkuZKeBqbwY totkLw.8zMGVkS0N1QCbfc._yc8slAP9cXhWylbcnXyREL4VkipBPdN2tKvzPKHp1qGqEbo0fJvr mKmTfbZFk19pAThNkd73FXRbxaBIXgX_MM2vTJYTArfJMju3VnCHgTw.4kZXpJkFyhwZ4MCBzVRJ TOY3N4P7JdMx_nl5bIEKmGVd.6VWXgTHnb7Doz_0B8mfw_HlS1yu82ulVFjMZy3ub8Bq9cmk5APB Xs3ffzNhYRTqZTs1pBqjOtBBZBZcCdznEL8YDxYfK9Vm9xEVLXFJe.TIrinh.PStamRpdMeMpE6V aW12VkEEyJJTpXJhB5WVkhz7LmLOBoqdPYWp2whL.liFVfHOWYoo8E9BNS6YG3l9c.qsP1pCzSP5 J7C4sUd.n9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EIm6 pR9WBhBguwbOMkiQO2xWPL7XAHgM1ScbvEOzlMp4v_.PO9A40FFs3f_k5cgaNpdjyN5ftNY3Frf1 fLDSxGgeK6upJBqfj.7hbxqagaqQYdYhggf5QaVUvWLT92e_nAPTa8IUyaK_.eAehGrx3.A0ga4V o5gZPpiyIDsRQpnSLZkwpNoVt_NdNZ0eRUTiyhVYHAQ566NPkmNxvX2Z6gZ70_sVRqgvleP1_UZM PNc8JKtEA6VJLK.dpbbYeOCz3a9Zlp_OFlyFALiRP5HyMohgYD_cVhH1OqUJTsR4Fge4ZKEqwAG. YmrpdXXPVRrKOfTSts0LJ33tmYCUVzKpuK4flW4A5i5OdnOfw2jfli3rCqSoB9fDiieANuhxHTdQ 8r08idvVLNgMhtv5YAwTMnQ0tgVVRZRfYS4YtO2_awj.y29BGAz.F_tiM4RBIFgAKAXN7TuYKsGn AwHWsHjQRTWQE0HNPdEC.3RZ3RqdpaJ4SEgM0g6zWdI3eYrcrWgRCd67h3M5HtdI5J4pZ8Te1Aba xwkoQs1vT7.WP966smE9gQHyyoRVBkg.DEaVKng7mMXlu0j7I.GHKGKPyT9J5QK_hTTyFhTJFCyF qkZSwZnSGiPxnHOu0stAhWgpmsRZaZ.m8mvcY7gREedjLlJHJ5hHiLGR1z4mgB.hWRDPRp24rVtB iWP6gn.OaQuo4JC1u8mM- X-Sonic-MF: X-Sonic-ID: 81f7bb4c-b446-4386-8929-096d3fe39520 Date: Wed, 6 Dec 2023 17:50:56 +0000 (UTC) To: "cygwin AT cygwin DOT com" Message-ID: <28338695.1014085.1701885056870@mail.yahoo.com> In-Reply-To: <239550729.5234119.1700680859793@mail.yahoo.com> References: <239550729 DOT 5234119 DOT 1700680859793 DOT ref AT mail DOT yahoo DOT com> <239550729 DOT 5234119 DOT 1700680859793 AT mail DOT yahoo DOT com> Subject: Re: Cygwin fails to create sockets correctly MIME-Version: 1.0 X-Mailer: WebService/1.1.21943 YMailNorrin X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: "Uwe F. Mayer via Cygwin" Reply-To: "Uwe F. Mayer" Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3B6HpYgJ013041 I found that if I start X or an ssh agent, and then manually set the system attribute on the socket file with something like (cd /tmp/.X11-unix/ && attrib +s X0) or (cd /tmp/ssh-gjJq8mINCmz0 && attrib +s agent.3145) then things work fine as far as X windows and ssh-agent are concerned. That means the issue at hand is that the system attribute is not set, the sockets themselves work fine once the file can be identified as a named socket. Starting X or ssh-agent as an administrator does not help. Anybody have any hints on what update / security setting changes could have triggered the system attribute not to be set, and more importantly, how to get this corrected? --Uwe On Wednesday, November 22, 2023 at 11:20:59 AM PST, Uwe F. Mayer wrote: > Cygwin fails to create sockets correctly on some > computers. Specifically, this fails on my machines with Windows 10 > Enterprise, but works fine on a system with Windows 10 Pro. This was > first observed on or about Nov 19, 2023. On one of the Windows 10 > Enterprise machines X has been running for several days and has a > functioning socket created on Nov 15, but new sockets cannot be > successfully created. >  > Steps to reproduce: > 1) Run any program that will produce a named socket. > 2) Do an ls -l on the socket, it will come up as an ordinary file with > permissions -rw-rw-rw- instead of srw-rw-rw- (note the missing "s"). >  > All my Windows 10 Enterprise machines are centrally managed by my employer. >  > The following Microsoft packages seem to have been installed / updated recently: >  > Microsoft Edge                           Microsoft.Edge                           119.0.2151.72 > Microsoft Edge Update                    Microsoft Edge Update                    1.3.181.5 > Microsoft Edge WebView2 Runtime          Microsoft.EdgeWebView2Runtime            119.0.2151.72 > App Installer                            Microsoft.DesktopAppInstaller_8wekyb3d8??? 1.21.3133.0 > Microsoft Edge                           Microsoft.MicrosoftEdge.Stable_8wekyb3d??? 119.0.2151.72 > Feedback Hub                             Microsoft.WindowsFeedbackHub_8wekyb3d8b??? 1.2309.12711.0 > Phone Link                               Microsoft.YourPhone_8wekyb3d8bbwe        1.23092.158.0 > Microsoft 365 Apps for enterprise - en-??? Microsoft.Office                         16.0.16924.20150 > Mail and Calendar                        microsoft.windowscommunicationsapps_8we??? 16005.14326.2174??? > Microsoft Update Health Tools            {1FC1A6C2-576E-489A-9B4A-92D21F542136}   3.74.0.0 >  > I specifically noticed the socket issue for ssh-add and for X11. The > issue can also be shown with nc. Below are logs. >  > Affected system: > ---------------- > Edition         Windows 10 Enterprise > Version         22H2 > Installed on    5/12/2022 > OS build        19045.3693 > Experience      Windows Feature Experience Pack 1000.19053.1000.0 >  > LAPTOP:~$ uname -a > CYGWIN_NT-10.0-19045 LAPTOP 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64 Cygwin >  > LAPTOP:~$ nc -lkU aSocket.sock & > [1] 1451 > LAPTOP:~$ ls -l aSocket.sock > -rw-rw-rw-+ 1 uwe Users 54 Nov 22 10:37 aSocket.sock >  >  > LAPTOP:~$ eval `ssh-agent -s`; ssh-add ~/.ssh/id_rsa > Agent pid 1365 > Error connecting to agent: Bad file descriptor > LAPTOP:~$ ls -l /tmp/ssh-FRwzveik5MWt/ > total 1 > -rw-rw-rw-+ 1 uwe Users 54 Nov 22 10:09 agent.1364 >  > LAPTOP:~$ xinit >  > Welcome to the XWin X Server > Vendor: The Cygwin/X Project > Release: 1.21.1.8 > OS: CYGWIN_NT-10.0-19045 LAPTOP 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64 > OS: Windows 10  [Windows NT 10.0 build 19045] x64 > Package: version 21.1.8-1 built 2023-06-19 >  > XWin was started with the following command line: >  > X :0 >  > (II) xorg.conf is not supported > (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information > winUpdateDpi - primary monitor native DPI x 96 y 96 > LoadPreferences: /home/uwe/.XWinrc not found > LoadPreferences: Loading /etc/X11/system.XWinrc > LoadPreferences: Done parsing the configuration file... > winDetectSupportedEngines - RemoteSession: no > winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL > winDetectSupportedEngines - Returning, supported engines 00000005 > winSetEngine - Using Shadow DirectDraw NonLocking > winScreenInit - Using Windows display depth of 32 bits per pixel > winWindowProc - WM_SIZE - new client area w: 1904 h: 1011 > winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff > MIT-SHM extension disabled due to lack of kernel support > XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel > (EE) AIGLX: No native OpenGL in modes with a root window > (II) IGLX: Loaded and initialized swrast > (II) GLX: Initialized DRISWRAST GL provider for screen 0 > winPointerWarpCursor - Discarding first warp: 952 505 > (--) 16 mouse buttons found > (--) Setting autorepeat to delay=500, rate=31 > (--) Windows keyboard layout: "00000409" (00000409) "US", type 4 > (--) Found matching XKB configuration "English (USA)" > (--) Model = "pc105" Layout = "us" Variant = "none" Options = "none" > Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none" >  > waiting for X server to begin accepting connections . > .. > [etc] > .. >  > [closing down X externally] >  > winDeinitMultiWindowWM - Noting shutdown in progress > (II) Server terminated successfully (0). Closing log file. > xinit: giving up > xinit: unable to connect to X server: Connection refused > xinit: server error >  > # in a separate terminal while X was running > LAPTOP:~$ v /tmp/.X11-unix/ > total 1 > -rw-rw-rw-+ 1 uwe Users 54 Nov 22 10:12 X0 >  >  > Unaffected system > ----------------- > Edition         Windows 10 Pro > Version         22H2 > Installed on    11/2/2020 > OS build        19045.3693 > Experience      Windows Feature Experience Pack 1000.19053.1000.0 >  > BLACK:~$ uname -a > CYGWIN_NT-10.0-19045 BLACK 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64 Cygwin >  > BLACK:~$ nc -lkU aSocket.sock & > [1] 1374 > BLACK:~$ ls -l aSocket.sock > srw-rw-rw-+ 1 uwe None 0 Nov 22 10:39 aSocket.sock >  >  > BLACK:~$ eval `ssh-agent -s`; ssh-add ~/.ssh/id_rsa > Agent pid 1298 > Enter passphrase for /home/uwe/.ssh/id_rsa: > Identity added: /home/uwe/.ssh/id_rsa (/home/uwe/.ssh/id_rsa) > BLACK:~$ ls -l /tmp/ssh-RgXsP4KvO7yd/ > total 1 > srw-rw-rw-+ 1 uwe None 0 Nov 22 10:08 agent.1297 >  > Black:~$ xinit >  > Welcome to the XWin X Server > Vendor: The Cygwin/X Project > Release: 1.21.1.8 > OS: CYGWIN_NT-10.0-19045 BLACK 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64 > OS: Windows 10  [Windows NT 10.0 build 19045] x64 > Package: version 21.1.8-1 built 2023-06-19 >  > XWin was started with the following command line: >  > X :0 >  > (II) xorg.conf is not supported > (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information > winUpdateDpi - primary monitor native DPI x 96 y 96 > LoadPreferences: /home/uwe/.XWinrc not found > LoadPreferences: Loading /etc/X11/system.XWinrc > LoadPreferences: Done parsing the configuration file... > winDetectSupportedEngines - RemoteSession: no > winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL > winDetectSupportedEngines - Returning, supported engines 00000005 > winSetEngine - Using Shadow DirectDraw NonLocking > winScreenInit - Using Windows display depth of 32 bits per pixel > winWindowProc - WM_SIZE - new client area w: 1664 h: 981 > winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff > MIT-SHM extension disabled due to lack of kernel support > XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel > (EE) AIGLX: No native OpenGL in modes with a root window > (II) IGLX: Loaded and initialized swrast > (II) GLX: Initialized DRISWRAST GL provider for screen 0 > winPointerWarpCursor - Discarding first warp: 832 490 > (--) 16 mouse buttons found > (--) Setting autorepeat to delay=500, rate=31 > (--) Windows keyboard layout: "00000409" (00000409) "US", type 4 > (--) Found matching XKB configuration "English (USA)" > (--) Model = "pc105" Layout = "us" Variant = "none" Options = "none" > Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none" > winProcEstablishConnection - winInitClipboard returned. > winClipboardThreadProc - DISPLAY=:0.0 > winClipboardProc - xcb_connect () returned and successfully opened the display. >  > [closing down X externally] >  > exiting main loop. > xterm: fatal IO error 11 (Resource temporarily unavailable) or KillClient on X server ":0" > xinit: connection to X server lost >  > waiting for X server to shut down winDeinitMultiWindowWM - Noting shutdown in progress > (II) Server terminated successfully (0). Closing log file. >  > # in a separate terminal while X was running > BLACK:~$ ls -l /tmp/.X11-unix/ > total 1 > srw-rw-rw-+ 1 uwe None 0 Nov 22 10:10 X0 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple