From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uPNoBBTZX2JlNwAAbAwnHQ (envelope-from ) for ; Wed, 20 Apr 2022 11:57:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UIaEBBTZX2IKQgAA9RJhRA (envelope-from ) for ; Wed, 20 Apr 2022 11:57:40 +0200 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 901162376D for ; Wed, 20 Apr 2022 11:57:39 +0200 (CEST) Received: from localhost ([::1]:51524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nh75e-00053h-8I for larch@yhetil.org; Wed, 20 Apr 2022 05:57:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nh754-00051z-4X for guix-patches@gnu.org; Wed, 20 Apr 2022 05:57:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51213) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nh753-00013v-Po for guix-patches@gnu.org; Wed, 20 Apr 2022 05:57:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nh753-0007d4-KG for guix-patches@gnu.org; Wed, 20 Apr 2022 05:57:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55034] [PATCH 0/1] Let openssh trust /gnu/store Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Apr 2022 09:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55034 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Alexey Abramov Cc: 55034@debbugs.gnu.org Received: via spool by 55034-submit@debbugs.gnu.org id=B55034.165044861829318 (code B ref 55034); Wed, 20 Apr 2022 09:57:01 +0000 Received: (at 55034) by debbugs.gnu.org; 20 Apr 2022 09:56:58 +0000 Received: from localhost ([127.0.0.1]:45110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nh750-0007cn-Cn for submit@debbugs.gnu.org; Wed, 20 Apr 2022 05:56:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nh74y-0007ca-E9 for 55034@debbugs.gnu.org; Wed, 20 Apr 2022 05:56:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nh74t-00013P-2R; Wed, 20 Apr 2022 05:56:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=dTzAoT/icknUvpmojmRJgfVz95+R2NRXOKI56o+CIoY=; b=iX49SBevU9fUfscfsfnW o26qUmY7gy+L8CGvqoEf/HTUh0/TjmG2cf4s2c7Ny/IuDLt85yeXMnR85BbZwL5lFKJSGMlQXbbgJ +FBFnNx1N1ZueV9pBxcP1lemrfRp47/v9+f1bAbJhundwX3PoEoIuYruYC7ziRxhLb13QvqW1ga74 hqaZ2MYd9Typ75+TDBEyD7Q5uhprMf2IxcZ83XU9ybxKIJ1Z02HDfXvO2DHkctKovLpNKu08r3irx EzN8wNJrEjP7Y16CWZZ1w+f2V1vWb422k+KxB6ClaIYDuZu5e18KWTXdsEgD2jqSj/SW0X6QpjA6m syzwjiXrA0wfzg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:61140 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nh74s-00080U-Lv; Wed, 20 Apr 2022 05:56:50 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20220420084724.3514-1-levenson@mmer.org> Date: Wed, 20 Apr 2022 11:56:49 +0200 In-Reply-To: <20220420084724.3514-1-levenson@mmer.org> (Alexey Abramov's message of "Wed, 20 Apr 2022 10:47:24 +0200") Message-ID: <87bkwwoz6m.fsf@gnu.org> 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650448659; 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-cc: 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=dTzAoT/icknUvpmojmRJgfVz95+R2NRXOKI56o+CIoY=; b=IcmJADTxKitAcOTf/ADj4f4h6eDFqbOsFsmldfbBJhIzYWdNb0XmXL/K8/nMhHaJSHEtt7 fjfM1M2WUMSWtYkURZ9uvasOAuLwtG9cL0N5V25bBfQf4x4c1BWb57Jgw+S0+qACgv7daP B0rrcAHqKsPpBx5+XFcJBuGgEiaNnnIDUMLKd0DoEJUOAZMico2/GMTlG/suJiqwTgbEvc iZMv6Ki+151tx0wrWvGLuLAXoJih/98fv3i07FZdSmI5vb45UP7WrBPVodUbKUeN9J3rJD fMlcnYOAS3AN4s2AwtvSmX2O5BU8Jr5ykjgYytHpA2IF9JtUtLQqC4LRekLfqg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650448659; a=rsa-sha256; cv=none; b=gTnGmKU2e9Fl7Fm0+cLWVwDkiTWfFdbVduRmyIGn/e/bpP3kt4BoTbSnIP0u4wOMbGf/VH R1mU9ZwDxRFtsQlroLCeCkh+SVtsmqMWPMc7hz7hL9Av9MRPzafXjyjCSpFdh8cH8nEwHx tXs1UTZ/axUQUnXYD9NyqBavwRbgctNi/+TP8eNkjq8mLmsnkd9VVw7CIkuyA5+bLGjNYz YoGYXdGqWvKUJnfHPfDDk9mIDGc5HyCyJnerLtT374PO3dhSwbKUvxFrNE5BuiYiAvbua1 Jg3a4bN7j8V5eLUZupa/9/nyo1ZmR8wzxqMte99kO9I2fLNkKy6erKR6Gh5IrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=iX49SBev; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=iX49SBev; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 901162376D X-Spam-Score: -3.44 X-Migadu-Scanner: scn1.migadu.com X-TUID: FItgRJWG/ocH Hi, Alexey Abramov skribis: > This patch allows users to use /gnu/store objects for AuthorizedKeysComma= nd > and similar options. According to the sshd_config(5): > >> The program must be owned by root, not writable by group or others, and >> specified by an absolute path. That=E2=80=99s the case with programs in /gnu/store. Why isn=E2=80=99t it = working? > However, this is not the case for Guix, even though it is RO. OpenSSH doe= sn't > check if the location mounted or ended up on the RO mount point. > > I think implementing a check for RO location is much harder here, rather > than to trust /gnu/store path. The same way OpenSSH does with users' home > directory. (RO =3D read-only, right?) I=E2=80=99m not sure why checking whether a file is read-only is much harde= r. Am I overlooking something? Thanks, Ludo=E2=80=99.