From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id SKj+JAx34Wb/OAAAqHPOHw:P1 (envelope-from ) for ; Wed, 11 Sep 2024 10:55:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id SKj+JAx34Wb/OAAAqHPOHw (envelope-from ) for ; Wed, 11 Sep 2024 12:55:08 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="nY/9inCb"; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="fgmm27Q/"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726052108; 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=PIJ7o3iaG1ydfMTejMplSNXcXN0VP3ytsV+LBeA9nfk=; b=BGNnJqb3/OMh5BLNDZ9h3Hqnp6EUXsF3V/A6c+6Wu/FTK3QHXbrfolkqmhoZDmy7niMG0o LA0KLFxuBwJTyvl2bEgtjCuVoQekR0t7XSFYo+lMx7U2bGEY1qLf7hS2kyvyLVsGQMSuv5 lZsU2DZ/HA2rKNMzjUXqzzCDriOgK/FwA4ug4nKJeHRtYyZxQTxCjGbcW8wshZE/bVhDPz YkaXotSLw0It7ot4p/gqqWv3nsTHjvTb7LVfC4rvwpFLP1DpmZm25yy6BoAxPtBpuhH5/e c3GtRKy2ac0ZJMIFJNMbKOyyCXpOlPMWUFx1GeFw9T0rsm3qpwDZ+QS4+YyQrw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="nY/9inCb"; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="fgmm27Q/"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726052108; a=rsa-sha256; cv=none; b=tuxCDvcXFX+4YpZkPkEBt2J5eDGu3vruNeWuARrkn5eU9luX2DEvGULT8gehak7ae4Cl5M IwgoF/8jHhpbTVhbVth0uWWAwv6EKv1xhb7Rn/qxW8ouZTSp9yguWEN4RJvUJ4ZGZfv/WL 5EYbfr1iSEvlS7XbZ/j0qSN7cB5laomsVXl8Phqz5ujPmXUgqCEQ2NtKfhSVVtakjXK8Ie nTrIMt1f3ciL1Y70UrqSlFglMt671+gJBU4B9wGJpCIivNA+/X/ZlYbZmxj5bEBj5jhuxU x9p8iCK6FuZSCC67W/daago3kMRBhOfnVd9t9aRYPcTgqnSI3jkfu86P+LOo6Q== 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 0AC51CF02 for ; Wed, 11 Sep 2024 12:55:08 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1soK4r-00081C-Va; Wed, 11 Sep 2024 05:55:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1soK4q-00080c-Ln for bug-guix@gnu.org; Wed, 11 Sep 2024 05:55:56 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1soK4q-0007pV-D3 for bug-guix@gnu.org; Wed, 11 Sep 2024 05:55:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=PIJ7o3iaG1ydfMTejMplSNXcXN0VP3ytsV+LBeA9nfk=; b=nY/9inCb3kH8OTW2Gv402nSCGKmMlAs9Jw4eb0gDY7GXJl5GTnnufdkDP/njAn6gjbVXHaTGiVfqbp8fTlzeaKNtWbxDMoXtG8qGDfHVrrElwnUceF1svvpw9tWfIzyOD+Hh5Lbrgw/UA6RyDcou2eGT0GTOZ9iKpvcsyJptDYV0SbHGFmbB87p/fRHnEdPl+e5GMPQcsDOOAc7QWzXdC98PTqJMebiA2nSwjTbUraoyArzrsAegt7TP+YATFr4glW/fJny6i9FZw1S0f5EE9laE/p7jWepbuEL9H8zT/kaK18HcdYsHXPf8KblTgkVpsj4ReqDaxquiK6G1sDGmCw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1soK4w-0008Az-CH for bug-guix@gnu.org; Wed, 11 Sep 2024 05:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#73166: shell-autorized-directories Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 11 Sep 2024 09:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73166 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Nicolas Graves Cc: 73166@debbugs.gnu.org Received: via spool by 73166-submit@debbugs.gnu.org id=B73166.172604852431381 (code B ref 73166); Wed, 11 Sep 2024 09:56:02 +0000 Received: (at 73166) by debbugs.gnu.org; 11 Sep 2024 09:55:24 +0000 Received: from localhost ([127.0.0.1]:37803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1soK4K-0008A5-DK for submit@debbugs.gnu.org; Wed, 11 Sep 2024 05:55:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1soK4I-00089r-PJ for 73166@debbugs.gnu.org; Wed, 11 Sep 2024 05:55:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1soK21-0007XR-6p; Wed, 11 Sep 2024 05:53:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=PIJ7o3iaG1ydfMTejMplSNXcXN0VP3ytsV+LBeA9nfk=; b=fgmm27Q/34TiP1ABJsSY NaVVq4iOzuu2Pf0HWuGQuhOAe0/BPNOQfBg6/UP/cFVJlyPkbtJmVgQtf0d+8I+9qFDhrpZ26LzFW aSlwR6pOHE2h8fKicBQWpPI7xOZRmbOgp54eywnhAy7cwSpDZaHKD46tsG8tb4WeDhit57fBSflYd MH2ZJMtTRzeog6ci03kJVbTVWiay7AS282ozHWtgFb6I9HOyUktpiLa6z+hqWArpiMhOPFrjMmR0L Pj8lw3te1MCMMvKx66T8BqA8gDd8j1CV0cdTvTyD2+6yWKF/QWmnq7Rmapv260f8lDfEIqlSM/qYB UoMvSDp49D0LkQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <877cbjwxs4.fsf@ngraves.fr> (Nicolas Graves's message of "Tue, 10 Sep 2024 13:31:07 +0200") References: <877cbjwxs4.fsf@ngraves.fr> Date: Wed, 11 Sep 2024 11:52:48 +0200 Message-ID: <87cyla7c0f.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 0AC51CF02 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.09 X-Spam-Score: -9.09 X-TUID: tORXJN3ahSwI Hi, Nicolas Graves skribis: > According to current uses of the XDG base dirs specification, I think > guix shell-autorized-directories is in the wrong place, and should > instead be in $XDG_STATE_HOME/guix/ > > direnv uses $XDG_STATE_HOME too to store authorized directories, and it > also makes more sense in the context of immutable configs Is it that clear-cut? It can be viewed as config rather than state too, no? > WDYT? Should we implement this change? The tricky thing might be the > migration for those files. Right, migration in itself is difficult. Not to mention that we=E2=80=99d = have to account for people who use =E2=80=98time-machine=E2=80=99 to run a pre-m= igration shell. > Maybe we should also add a --allow argument to guix shell to make it > easier to add files. That option would add a line to =E2=80=98shell-autorized-directories=E2=80= =99? Thanks, Ludo=E2=80=99.