From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 21 12:51:41 2016 Received: (at submit) by debbugs.gnu.org; 21 Jul 2016 16:51:41 +0000 Received: from localhost ([127.0.0.1]:60599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQHCH-0003hn-6O for submit@debbugs.gnu.org; Thu, 21 Jul 2016 12:51:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60211) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQHCD-0003hW-B7 for submit@debbugs.gnu.org; Thu, 21 Jul 2016 12:51:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQHC7-00053e-25 for submit@debbugs.gnu.org; Thu, 21 Jul 2016 12:51:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, HK_RANDOM_ENVFROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQHC6-00053Y-V5 for submit@debbugs.gnu.org; Thu, 21 Jul 2016 12:51:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQHC5-0006Mg-Eo for bug-guix@gnu.org; Thu, 21 Jul 2016 12:51:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQHC0-000529-CM for bug-guix@gnu.org; Thu, 21 Jul 2016 12:51:28 -0400 Received: from plane.gmane.org ([80.91.229.3]:42423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQHC0-00051m-0u for bug-guix@gnu.org; Thu, 21 Jul 2016 12:51:24 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bQHBo-000209-JL for bug-guix@gnu.org; Thu, 21 Jul 2016 18:51:12 +0200 Received: from c-73-167-118-254.hsd1.ma.comcast.net ([73.167.118.254]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Jul 2016 18:51:12 +0200 Received: from myglc2 by c-73-167-118-254.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Jul 2016 18:51:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-guix@gnu.org From: myglc2 Subject: GuixSD - problem with X11 forwarding Date: Thu, 21 Jul 2016 12:49:07 -0400 Lines: 130 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-73-167-118-254.hsd1.ma.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:KJAZGpCyK836jY4ZWaEIJj0tCQc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit This is still open so I am moving it from user to bugs ... From: myglc2 Subject: Re: guixSD - problem with X11 forwarding Newsgroups: gmane.comp.gnu.guix.user To: help-guix@gnu.org Date: Mon, 29 Feb 2016 21:12:51 -0500 (20 weeks, 2 days, 14 hours ago) ludo@gnu.org (Ludovic Courtès) writes: > myglc2 skribis: > >> On guixSD, with no packages installed in the login user profile, I get >> 'X11 forwarding request failed on channel 0' > > [...] > >> debug1: channel 0: new [client-session] >> debug1: Entering interactive session. >> debug1: Requesting X11 forwarding with authentication spoofing. >> debug1: Sending environment. >> debug1: Sending env LANG = en_US.UTF-8 >> X11 forwarding request failed on channel 0 > > Right, I see that as well. > > lshd gives some clues in /var/log/messages: > > Feb 23 18:14:09 localhost lshd[430]: lshd: Updating utmp for login failed (errno = 2): No such file or directory > Feb 23 18:14:09 localhost lshd[430]: lshd: xauth invocation failed: exit code: 127 > Feb 23 18:14:33 localhost lshd[430]: lshd: Updating utmpx for logout failed (errno = 2): No such file or directory > Feb 23 18:14:33 localhost lshd[430]: lshd: write_buffer: Attempt to write data to closed buffer. > Feb 23 18:14:33 localhost lshd[430]: lshd: Disconnect for reason 11: disconnected by user > > Indeed, server_x11.c in lsh reads: > > #ifndef XAUTH_PROGRAM > # define XAUTH_PROGRAM "/usr/X11R6/bin/xauth" > #endif > > I believe this is fixed by commit da35acf. [...] Not, at lease, in my setup. I am running GuixSD built from git checkout ... b006ba5 [behind 15] pull: Update the version string. On the client, ssh produces ... 'X11 forwarding request failed on channel 0' On the headless server (g1) in /var/log/messages ... Jul 21 12:24:51 localhost lshd[381]: lshd: Failed to cd to `/tmp/.X11-unix' (errno = 2): No such file or directory Jul 21 12:24:51 localhost lshd[381]: lshd: Updating utmp for login failed (errno = 2): No such file or directory With this workaround ... sudo mkdir /tmp/.X11-unix sudo chmod 777 /tmp/.X11-unix ... if I log out and back in X11 forwarding "works" and in /var/log/messages ... Jul 21 12:33:44 localhost lshd[381]: lshd: Updating utmp for login failed (errno = 2): No such file or directory When I logout, in /var/log/messages I see ... Jul 21 12:36:06 localhost lshd[381]: lshd: Updating utmpx for logout failed (errno = 2): No such file or directory Jul 21 12:36:06 localhost lshd[381]: lshd: write_buffer: Attempt to write data to closed buffer. Jul 21 12:36:06 localhost lshd[381]: lshd: Disconnect for reason 11: disconnected by user Of course, the workaround needs to be re-applied each time the server is rebooted. The system and user configs are attached below ;-) --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=g1.scm Content-Transfer-Encoding: base64 KHVzZS1wYWNrYWdlLW1vZHVsZXMKIGFzcGVsbAogYmFzZQogc2NoZW1lIDs7IHNpY3AKIGVtYWNz ICA7OyBnZWlzZXItbmV4dAogKQoocGFja2FnZXMtPm1hbmlmZXN0CiAobGlzdAogIGFzcGVsbC1k aWN0LWVuIDsgYmVjYXVzZSBlbWFjcyBkb2Vzbid0IGZpbmQgc3lzdGVtIGluc3RhbGwKICBnZWlz ZXItbmV4dCAgICA7IHRlbXBvcmFyeSBmb3IgJ0MtYyBDLWQgQy1kJyB0byB3b3JrCiAgc2ljcCAg ICAgICAgICAgOyBTSUNQIGluIHRleGluZm8KICApKQo= --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=system.scm Content-Transfer-Encoding: base64 Ozs7IGcxIHN5c3RlbSBjb25maWcKKHVzZS1tb2R1bGVzIChnbnUpKQoodXNlLXNlcnZpY2UtbW9k dWxlcyBuZXR3b3JraW5nIHNzaCkKKHVzZS1wYWNrYWdlLW1vZHVsZXMKIGJhc2UKIGFkbWluCiBk aXNrCiBsaW51eCAgICAgICAgICAgICAgICAgOyBtZGFkbQogcGFja2FnZS1tYW5hZ2VtZW50ICAg IDsgZ3VpeAogc2NyZWVuCiBnaG9zdHNjcmlwdCAgICAgICAgICAgOyBncy1mb250cwogZm9udHMg ICAgICAgICAgICAgICAgIDsgZm9udC1kZWphdnUgZm9udC1nbnUtZnJlZWZvbnQtdHRmCiBjdXJs ICAgICAgICAgICAgICAgICAgO2xwYXN0ZQogc3NoCiByc3luYwogd2dldAogdmVyc2lvbi1jb250 cm9sICAgICAgIDsgZ2l0CiBhc3BlbGwKIGVtYWNzCiBhdXRvdG9vbHMgICAgICAgICAgICAgOyBh dXRvbWFrZQogdGV4aW5mbwogZ2V0dGV4dAogeG9yZyBjZXJ0cwogZ3JhcGh2aXoKIHFlbXUKICkK KG9wZXJhdGluZy1zeXN0ZW0KICAoaG9zdC1uYW1lICJnMSIpCiAgKHRpbWV6b25lICJBbWVyaWNh L05ld19Zb3JrIikKICAobG9jYWxlICJlbl9VUy51dGY4IikKICAoYm9vdGxvYWRlciAoZ3J1Yi1j b25maWd1cmF0aW9uIChkZXZpY2UgIi9kZXYvc2RhIikpKQogIChmaWxlLXN5c3RlbXMgKGNvbnMg KGZpbGUtc3lzdGVtCgkJCShkZXZpY2UgImcxc2QiKQoJCQkodGl0bGUgJ2xhYmVsKQoJCQkobW91 bnQtcG9pbnQgIi8iKQoJCQkodHlwZSAiZXh0NCIpKQoJCSAgICAgICViYXNlLWZpbGUtc3lzdGVt cykpCiAgKHVzZXJzIChjb25zKiAodXNlci1hY2NvdW50CgkJIChuYW1lICJnbGMiKQoJCSAoZ3Jv dXAgInVzZXJzIikKCQkgKHN1cHBsZW1lbnRhcnktZ3JvdXBzICcoIndoZWVsIikpCgkJIChob21l LWRpcmVjdG9yeSAiL2hvbWUvZ2xjIikpCgkJKHVzZXItYWNjb3VudAoJCSAobmFtZSAiZzEiKQoJ CSAoZ3JvdXAgInVzZXJzIikKCQkgKHN1cHBsZW1lbnRhcnktZ3JvdXBzICcoIndoZWVsIiAia3Zt IikpCgkJIChob21lLWRpcmVjdG9yeSAiL2hvbWUvZzEiKSkKCQkodXNlci1hY2NvdW50CgkJIChu YW1lICJnMXgiKQoJCSAoZ3JvdXAgInVzZXJzIikKCQkgKHN1cHBsZW1lbnRhcnktZ3JvdXBzICco IndoZWVsIiAia3ZtIikpCgkJIChob21lLWRpcmVjdG9yeSAiL2hvbWUvZzF4IikpCgkJJWJhc2Ut dXNlci1hY2NvdW50cykpCiAgKHBhY2thZ2VzCiAgIChjb25zKgogICAgZ2xpYmMtdXRmOC1sb2Nh bGVzCiAgICBwYXJ0ZWQKICAgIG1kYWRtCiAgICBxZW11CiAgICBndWl4CiAgICBzY3JlZW4KICAg IG9wZW5zc2ggbnNzLWNlcnRzIHhhdXRoCiAgICByc3luYyB3Z2V0CiAgICBjdXJsIDtscGFzdGUK ICAgIGdpdCBnaXQtbWFucGFnZXMKICAgIGdzLWZvbnRzIGZvbnQtZGVqYXZ1IGZvbnQtZ251LWZy ZWVmb250LXR0ZgogICAgYXNwZWxsLWRpY3QtZW4gCiAgICBlbWFjcwogICAgZmx5Y2hlY2sgcGFy ZWRpdCBtYWdpdAogICAgZW1hY3MtemVuYnVybi10aGVtZSBlbWFjcy1tYXJrZG93bi1tb2RlIGVt YWNzLXdlYi1tb2RlIAogICAgZ251LW1ha2UKICAgIHRleGluZm8KICAgIGF1dG9tYWtlCiAgICBn cmFwaHZpegogICAgJWJhc2UtcGFja2FnZXMpKQogIChzZXJ2aWNlcyAoY29ucyogKGRoY3AtY2xp ZW50LXNlcnZpY2UpCgkJICAgKGxzaC1zZXJ2aWNlICM6cG9ydC1udW1iZXIgMjIpCgkJICAgJWJh c2Utc2VydmljZXMpKSkK --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 01 05:53:17 2016 Received: (at control) by debbugs.gnu.org; 1 Aug 2016 09:53:17 +0000 Received: from localhost ([127.0.0.1]:52571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bU9uP-0004v0-9v for submit@debbugs.gnu.org; Mon, 01 Aug 2016 05:53:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bU9uN-0004uj-Tr for control@debbugs.gnu.org; Mon, 01 Aug 2016 05:53:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bU9uE-0000sk-2G for control@debbugs.gnu.org; Mon, 01 Aug 2016 05:53:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40633) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bU9uD-0000sd-Vo for control@debbugs.gnu.org; Mon, 01 Aug 2016 05:53:05 -0400 Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:40160 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bU9uB-0002lf-9Z for control@debbugs.gnu.org; Mon, 01 Aug 2016 05:53:04 -0400 Date: Mon, 01 Aug 2016 11:53:01 +0200 Message-Id: <87bn1cu876.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #24049 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.3 (------) merge 24049 22930 From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 01 06:18:05 2016 Received: (at 24049) by debbugs.gnu.org; 1 Aug 2016 10:18:05 +0000 Received: from localhost ([127.0.0.1]:52580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUAIP-000755-Bv for submit@debbugs.gnu.org; Mon, 01 Aug 2016 06:18:05 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUAIO-00074c-EO for 24049@debbugs.gnu.org; Mon, 01 Aug 2016 06:18:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUAIF-0004x2-IF for 24049@debbugs.gnu.org; Mon, 01 Aug 2016 06:17:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUAI0-0004wH-0N; Mon, 01 Aug 2016 06:17:40 -0400 Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:40168 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bUAHx-00022J-H4; Mon, 01 Aug 2016 06:17:38 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: myglc2 Subject: Re: bug#24049: GuixSD - problem with X11 forwarding References: Date: Mon, 01 Aug 2016 12:17:35 +0200 In-Reply-To: (myglc2@gmail.com's message of "Thu, 21 Jul 2016 12:49:07 -0400") Message-ID: <8737mou728.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 24049 Cc: bug-lsh@gnu.org, 24049@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.3 (------) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi myglc2, myglc2 skribis: > On the client, ssh produces ... > > 'X11 forwarding request failed on channel 0' > > On the headless server (g1) in /var/log/messages ... > > Jul 21 12:24:51 localhost lshd[381]: lshd: Failed to cd to `/tmp/.X11-uni= x' (errno =3D 2): No such file or directory=20 > Jul 21 12:24:51 localhost lshd[381]: lshd: Updating utmp for login failed= (errno =3D 2): No such file or directory=20 > > With this workaround ... > > sudo mkdir /tmp/.X11-unix > sudo chmod 777 /tmp/.X11-unix > > ... if I log out and back in X11 forwarding "works" I believe this is a bug in lshd fixed by something along the lines of the attached patch. Niels, what do you think? (Strangely I can=E2=80=99t find equivalent code in OpenSSH.) Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- /tmp/lsh-2.1/src/server_x11.c 2016-08-01 11:58:54.714647794 +0200 +++ /tmp/lsh-2.1/src/server_x11.c.new 2016-08-01 11:58:46.606563478 +0200 @@ -151,7 +151,7 @@ DEFINE_COMMAND(open_forwarded_x11) #define X11_MIN_DISPLAY 10 #define X11_MAX_DISPLAY 1000 -/* FIXME: Create the /tmp/.X11-unix directory, if needed. Figure out +/* FIXME: Figure out * if and how we should use /tmp/.X17-lock. Consider using display * "unix:17" instead of just ":17". */ @@ -253,6 +253,7 @@ open_x11_socket(struct ssh_channel *chan old_umask = umask(0077); + mkdir(X11_SOCKET_DIR, S_IRWXU | S_IRWXG | S_IRWXO | S_ISVTX); old_cd = lsh_pushd(X11_SOCKET_DIR, &dir, 0, 0); if (old_cd < 0) { --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 06 00:04:38 2020 Received: (at 24049-done) by debbugs.gnu.org; 6 Oct 2020 04:04:38 +0000 Received: from localhost ([127.0.0.1]:51046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPeDO-0000sD-7j for submit@debbugs.gnu.org; Tue, 06 Oct 2020 00:04:38 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:46335) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPeDK-0000ru-IY; Tue, 06 Oct 2020 00:04:37 -0400 Received: by mail-qk1-f194.google.com with SMTP id f142so15303237qke.13; Mon, 05 Oct 2020 21:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Q/MB5ADLQNxM2+VHXGk1CPyeDQkJbVhE/QJbo175Z8Y=; b=iNaUIDyYmoup+WW4SsHMm2TiMI52Cj4WgYhU4PtVdY6kCWg+vtvFyCdr7/IrF3S2z+ vr3ueeZxO1sxRaytsouqA6aPeYtJmofwPDk2x4SL3mEHYsd0mOIe3tmKw6TWWEHDxsha IeX2C7itZ9W5Jpwqw6h2aTE3Bp2nfs96byrXmXBHwdpKhuYmdLcKkrZvgzN5MudoNrau 0j7JRh1WF1xxcPOmqcRIH+nFiHbEzF/3tw5+ouDj74WCPRkhhnaiPTyKrd2FN2ISbKDI Q6iElwsKxHaqKkxPgwgrHxCnmr9OUtArm2T11r2nCnSo04K2O3zmmI1u/qSVnmNdhJEV le8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Q/MB5ADLQNxM2+VHXGk1CPyeDQkJbVhE/QJbo175Z8Y=; b=nNHKg3D5RNPCDl/1j3Ze3i7y8LY1BLKbYN9Yk9GR/6jQ1CnHfBwySo7I9RROo32voZ wOWCWDnMt+dU1SMbDQvT09QBOz2s+JcwUhGr5ILBPNV9BiMUXvJIpPjrqD6SDj9hwte1 YS28Ht/pfPrAf6IkLRJ2wDKMj/DZMGSuARagnKD2ltOqJz/7T4ftXtoLyHWQJ+17HOEY GXFc5dfy/H/L0yV0/0Jdz6yXdnDLBAKLncbnymdZZBF/tA0OeIBTMKVhDT4ixcwg3ARX NYtOLLgC3Emha1oWGLRnJvtVY/Np9gDHm2H6i0WR3/1C2fZpsWlnp6YdOw8UGFCMdfru tZKA== X-Gm-Message-State: AOAM5302p35L+t1Ol1PNAR8HdxA/QMyo1W6NOZt82qK4eaXX0rZxpgBk ytR0QDQNybedUkFguVPAJ0RmYD8sP7Tgdg== X-Google-Smtp-Source: ABdhPJyYvfiEsZCeEF0CBPiludUjMIag7z4zRIgtaPQYyFDKnuLGcWGJq4aigJBS0T2YnRSIh9b0qw== X-Received: by 2002:ae9:ed13:: with SMTP id c19mr3358875qkg.196.1601957068579; Mon, 05 Oct 2020 21:04:28 -0700 (PDT) Received: from hurd (dsl-10-141-84.b2b2c.ca. [72.10.141.84]) by smtp.gmail.com with ESMTPSA id a5sm1649835qkb.60.2020.10.05.21.04.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 21:04:27 -0700 (PDT) From: Maxim Cournoyer To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#24049: GuixSD - problem with X11 forwarding References: <8737mou728.fsf@gnu.org> Date: Tue, 06 Oct 2020 00:04:26 -0400 In-Reply-To: <8737mou728.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 01 Aug 2016 12:17:35 +0200") Message-ID: <87h7r8huet.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 24049-done Cc: myglc2 , 24049-done@debbugs.gnu.org, 22930-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, ludo@gnu.org (Ludovic Court=C3=A8s) writes: [...] > I believe this is a bug in lshd fixed by something along the lines of > the attached patch. > > Niels, what do you think? > > (Strangely I can=E2=80=99t find equivalent code in OpenSSH.) > > Thanks, > Ludo=E2=80=99. > > --- /tmp/lsh-2.1/src/server_x11.c 2016-08-01 11:58:54.714647794 +0200 > +++ /tmp/lsh-2.1/src/server_x11.c.new 2016-08-01 11:58:46.606563478 +0200 > @@ -151,7 +151,7 @@ DEFINE_COMMAND(open_forwarded_x11) > #define X11_MIN_DISPLAY 10 > #define X11_MAX_DISPLAY 1000 >=20=20 > -/* FIXME: Create the /tmp/.X11-unix directory, if needed. Figure out > +/* FIXME: Figure out > * if and how we should use /tmp/.X17-lock. Consider using display > * "unix:17" instead of just ":17". > */ > @@ -253,6 +253,7 @@ open_x11_socket(struct ssh_channel *chan >=20=20 > old_umask =3D umask(0077); >=20=20=20=20 > + mkdir(X11_SOCKET_DIR, S_IRWXU | S_IRWXG | S_IRWXO | S_ISVTX); > old_cd =3D lsh_pushd(X11_SOCKET_DIR, &dir, 0, 0); > if (old_cd < 0) > { I tried the above fix and ran a VM with the attached config (the custom kernel stuff was to try something else at the same time). It fixes the error about the directory, but it would still fail at X11 forwarding (there was an error message: "Can't find any xauth information for X11 display"). I ended up figuring out it needed libxau to work; combined with your patch, this fixes X11 forwarding. Fixed in commit 0ec195ff02. For the record, I've done the tests in a VM using the attached system config. The custom kernel stuff is unrelated. Thanks, Closing, Maxim --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=config-custom-kernel.scm (use-modules (gnu)) (use-service-modules networking ssh desktop) (use-package-modules admin disk aspell gettext ghostscript ;; gs-fonts fonts ;; font-dejavu font-gnu-freefont-ttf base ssh rsync wget screen version-control emacs emacs-xyz xorg xdisorg certs) (define make-linux-libre (@@ (gnu packages linux) make-linux-libre)) (define-public %linux-kernel-with-fault-injection (make-linux-libre "5.8.13" ;version "1wm8rsq53dd01wjnd4bz61daz9f7zm55sh1dssmpqwgdwh3cpshp" ;hash '("x86_64-linux") ;supported systems #:configuration-file (@@ (gnu packages linux) kernel-config) #:extra-version "with-fault-injection" #:extra-options (append (@@ (gnu packages linux) %default-extra-linux-options) `(("CONFIG_FAULT_INJECTION" . #t) ("CONFIG_FAIL_MAKE_REQUEST" . #t) ("CONFIG_FAIL_MMC_REQUEST" . #t) ("CONFIG_FAULT_INJECTION_DEBUG_FS" . #t))) #:patches '())) (operating-system (host-name "g1") (timezone "America/New_York") (locale "en_US.utf8") (bootloader (grub-configuration (target "/dev/sda"))) (file-systems (cons (file-system (device "g1sd") (mount-point "/") (type "ext4")) %base-file-systems)) (kernel %linux-kernel-with-fault-injection) (users (cons* (user-account (name "test") (group "users") (supplementary-groups '("wheel")) (home-directory "/home/test")) %base-user-accounts)) (packages (cons* glibc-utf8-locales parted gs-fonts font-dejavu font-gnu-freefont-ttf gnu-make openssh nss-certs rsync wget git screen emacs xauth ;used by lsh xeyes ;for testing %base-packages)) (services (cons* (lsh-service #:port-number 22 #:allow-empty-passwords? #t #:root-login? #t) (service dhcp-client-service-type) %base-services))) --=-=-=-- From unknown Tue Jun 17 21:54:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 03 Nov 2020 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator