From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aJEpMv3se1+KdQAA0tVLHw (envelope-from ) for ; Tue, 06 Oct 2020 04:05:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uB3jLf3se1/aDwAAbx9fmQ (envelope-from ) for ; Tue, 06 Oct 2020 04:05:17 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0C6019400D3 for ; Tue, 6 Oct 2020 04:05:16 +0000 (UTC) Received: from localhost ([::1]:37684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPeDy-0005li-LT for larch@yhetil.org; Tue, 06 Oct 2020 00:05:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPeDn-0005kX-1E for bug-guix@gnu.org; Tue, 06 Oct 2020 00:05:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39504) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPeDm-0007d5-Ml for bug-guix@gnu.org; Tue, 06 Oct 2020 00:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPeDm-0000t8-HL for bug-guix@gnu.org; Tue, 06 Oct 2020 00:05:02 -0400 Subject: bug#22930: bug#24049: GuixSD - problem with X11 forwarding Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Tue, 06 Oct 2020 04:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 22930 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Mail-Followup-To: 22930@debbugs.gnu.org, maxim.cournoyer@gmail.com, myglc2@gmail.com Received: via spool by 22930-done@debbugs.gnu.org id=D22930.16019570793373 (code D ref 22930); Tue, 06 Oct 2020 04:05:02 +0000 Received: (at 22930-done) by debbugs.gnu.org; 6 Oct 2020 04:04:39 +0000 Received: from localhost ([127.0.0.1]:51048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPeDO-0000sF-I5 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 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?="'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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: myglc2 , 24049-done@debbugs.gnu.org, 22930-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=iNaUIDyY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 2.59 X-TUID: BIFEiEwKA+3V --=-=-= 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))) --=-=-=--