From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UP6IAEpYmGEZnAAAgWs5BA (envelope-from ) for ; Sat, 20 Nov 2021 03:07:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sPwMN0lYmGFfWgAA1q6Kng (envelope-from ) for ; Sat, 20 Nov 2021 02:07:05 +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 DC1411054F for ; Sat, 20 Nov 2021 03:07:01 +0100 (CET) Received: from localhost ([::1]:59786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moFmO-0005rE-Co for larch@yhetil.org; Fri, 19 Nov 2021 21:07:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moFlS-0005qz-G2 for bug-guix@gnu.org; Fri, 19 Nov 2021 21:06:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57653) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moFlS-0002nd-7Y for bug-guix@gnu.org; Fri, 19 Nov 2021 21:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1moFlS-0003cd-12 for bug-guix@gnu.org; Fri, 19 Nov 2021 21:06:02 -0500 Subject: bug#23317: openssh: ssh client: xauth path is invalid - "/usr/X11R6/bin/xauth" Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Sat, 20 Nov 2021 02:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 23317 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Mail-Followup-To: 23317@debbugs.gnu.org, maxim.cournoyer@gmail.com, dannym@scratchpost.org Received: via spool by 23317-done@debbugs.gnu.org id=D23317.163737391013846 (code D ref 23317); Sat, 20 Nov 2021 02:06:01 +0000 Received: (at 23317-done) by debbugs.gnu.org; 20 Nov 2021 02:05:10 +0000 Received: from localhost ([127.0.0.1]:40964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moFkc-0003bG-5V for submit@debbugs.gnu.org; Fri, 19 Nov 2021 21:05:10 -0500 Received: from mail-qt1-f181.google.com ([209.85.160.181]:43953) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moFka-0003ax-Ht for 23317-done@debbugs.gnu.org; Fri, 19 Nov 2021 21:05:09 -0500 Received: by mail-qt1-f181.google.com with SMTP id q14so11214655qtx.10 for <23317-done@debbugs.gnu.org>; Fri, 19 Nov 2021 18:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=iM/TIncrT11zrVpuqttmzoRuyelDBNtW8zHk/cEWMis=; b=dOCyGPtCiJmbsAr0W0PoUn4IalkklnxbQtH4UW0R/WUZzDPZChlDdIWDiRvveugj/U 3E+YEkhL8nO2nUgR3Btsph/a2e9vBiJK5zz0JWeyNkRikstrA5WMuCvf+Kazj1HpjqU7 zAQrcn5/Fxhq4eatOeYC2GN2Ytn8jeDyUQ8N5SRLKZew+LocmTUuWbdjp1/54lnbZM2c HpIcQUbXZNI7Ai6SwrxW67G+pNPK7LJuTC2VGtM21avsDnfp+0Ue6DBpzrH2waag4Dc9 PNGJyExfN1AvsHYu6P3Hc1XTb2eynnlMuCBJL1fIkfM6XrpcAvhM02UppZNTfz+gGG0h sVjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=iM/TIncrT11zrVpuqttmzoRuyelDBNtW8zHk/cEWMis=; b=eeNbsjhQXd+S4agdz8L3fG0I7B+mlnrhUek39cnXdrh+vEYtiEnZooY5A/6Y3w29iK SEU98FKfjODPvYlQU7+KoqQLIZ+YvOp7JA9clzjVeZOAzkC23fGNzea/AlzwHIBbiHkC SfWQzgIi0uM+5js/yUaVNe9XdpaneR+BYvDDbHcEyQQQg47xEU/UG0lbyaisWhbfsCev a+W9n66ijZX+S7Kvte10s87aFjqXRskKpXoa2HzatI/+dGhfcFTlrHPaPml+XtT71NHC te7UEZJyEHmgSJFMxh6T8JCq8Uzn3RajMxemBRRpDCO+wUrHbMU3SiT7qP8seUoYGJO5 HRmQ== X-Gm-Message-State: AOAM530V9O7wzWA/KuUqxNoTSUHTbgZ+AwQ0icNTlMNLDXFhMiXskTmG shSB+LP96jSFHQDaO1YhQVjEF67Uyw3RcA== X-Google-Smtp-Source: ABdhPJxZKSIlM4uFPO99SV0iVjufho5a4xLMvjI7JT2LBcIPawONJ6zGXxjvN0Tde6sM8wKvVqvGwA== X-Received: by 2002:a05:622a:1aa0:: with SMTP id s32mr11363436qtc.245.1637373902909; Fri, 19 Nov 2021 18:05:02 -0800 (PST) Received: from hurd (dsl-10-133-135.b2b2c.ca. [72.10.133.135]) by smtp.gmail.com with ESMTPSA id x21sm745633qkf.77.2021.11.19.18.05.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Nov 2021 18:05:02 -0800 (PST) From: Maxim Cournoyer References: <20160419223929.54f33b36@scratchpost.org> <20160428073041.36eb3e93@scratchpost.org> <87eg68u8ai.fsf@gnu.org> Date: Fri, 19 Nov 2021 21:05:01 -0500 In-Reply-To: <87eg68u8ai.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 01 Aug 2016 11:51:01 +0200") Message-ID: <87y25jeg4y.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 23317-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637374022; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=iM/TIncrT11zrVpuqttmzoRuyelDBNtW8zHk/cEWMis=; b=XX+hn0PBnV4B2ITU4oCPcrsnALqmWfzz1infg8YqzFOJ+oNlO+5sEQEhwOUJZtsnonbbi2 6Gb51lUFGmF99Tbdzb0u5sM6KidLejBuQawEb6TvOrjCTekg0ewtoIyEEmSHvpg+fLjt6p k+2793n6GUYXsZWvTmk3IAVHGxPZOuyienUtR8eCGy5Aldm7ypy6v5r1Id1/hDUuDLYWjY 4BzEGuGeJblK+iiPuVM4FNfEM8oaY5p/NK1sBLGkQTyHu7pIQj2S5T9RzcUUWFOmHtqLNn VXZ6EHPtbz/9+2RCIuK+zwVR2JFvY9+eRXGyqviTyzFCBHFm+jEVmZOTzhrFlw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637374022; a=rsa-sha256; cv=none; b=DdKmwaVAl9yvhKQYs86wlSUPv0/oyqHV3qV0rMyQbfU5EcVH+FBFjJ+NIV4H/IodnK8X0b VJbOgfYZeOEjgleQhp98Ls7IpSAej/mBizfMcIuVRvn+3M77W00nXOSv8lCuOUQChyPUf5 jwuRCJxmXpqeH2T/RRwLC8bTCU6LcW/+EshnQKgefWGnHWud2CDIeYTnEB456j/S8VaCvd Z0U9BhtWnPO23dogZbj2iHdzsgVA1abF+7NGox0NzkiFlvvE7yop5igiHim5j6hd2u8pV9 au1IzhvZvP3gBq0/LpMapERElwb6HBph298GgZ4LHEtys5NmBzrAQmzUKcJIXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=dOCyGPtC; 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-Migadu-Spam-Score: -1.77 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=dOCyGPtC; 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-Migadu-Queue-Id: DC1411054F X-Spam-Score: -1.77 X-Migadu-Scanner: scn1.migadu.com X-TUID: DzGXIYJG7xa+ Hi, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hi! > > Danny Milosavljevic skribis: > >> But >> >> $ ssh -Y -o XAuthLocation=3D$(which xauth) daya20 >> >> works without the patch. >> >> And >> >> $ ssh -Y daya20 >> >> works with the patch. > > I pushed the patch as commit 683a4a34cd4a565cbdb0b46a326e30795657814c. > This increases the closure size of OpenSSH from 89 to 118=C2=A0MiB (+33%), > but I think it=E2=80=99s a useful addition. > >> But >> >> $ ssh -X daya20 >> >> never works, with or without the patch. Huh. > > I=E2=80=99ve straced =E2=80=9Cssh -X=E2=80=9D, and it shows that xauth fa= ils like this: > > 4742 write(2, "/gnu/store/86f0c3h99sl9z4x4w30hfy33i7nv2ik9-xauth-1.0.9/b= in/xauth: (argv):1: ", 78) =3D 78 > 4742 write(2, "couldn't query Security extension on display \":0.0\"\n",= 52) =3D 52 > 4742 unlink("/tmp/ssh-FDByknME3mmd/xauthfile-c") =3D 0 > 4742 unlink("/tmp/ssh-FDByknME3mmd/xauthfile-l") =3D 0 > 4742 umask(022) =3D 077 > 4742 exit_group(1) =3D ? > > This is because the SECURITY extension are disabled in our xorg-server > package. We could configure it with --enable-xcsecurity, but upstream > disables it by default and it seems to be deprecated: > > https://www.x.org/wiki/Development/Documentation/Security/ > > Thoughts? It seems to me that while imperfect, these security measures provide additional security in X11 forwarding context. Also, they are enabled in Debian [0] and Fedora [1] and many other places, so it seems reasonable to do so too. I've added the flag in commit 87b4c66b72 on core-updates-frozen. Closing! Maxim [0] https://salsa.debian.org/xorg-team/xserver/xorg-server/-/blob/debian-u= nstable/debian/rules.flags#L64 [1] https://src.fedoraproject.org/rpms/xorg-x11-server/blob/rawhide/f/xorg= -x11-server.spec#_350