GNU bug report logs - #78363
Home is read-only in guix shell container

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: keinflue <keinflue@HIDDEN>; merged with #78440; Done: Ludovic Courtès <ludo@HIDDEN>; Maintainer for guix is bug-guix@HIDDEN.

Message received at 78363-done <at> debbugs.gnu.org:


Received: (at 78363-done) by debbugs.gnu.org; 18 May 2025 21:04:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 18 17:04:56 2025
Received: from localhost ([127.0.0.1]:60995 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uGlBn-0007fw-2T
	for submit <at> debbugs.gnu.org; Sun, 18 May 2025 17:04:55 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:53176)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1uGlAM-0007Zu-50
 for 78363-done <at> debbugs.gnu.org; Sun, 18 May 2025 17:03:26 -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 <ludo@HIDDEN>)
 id 1uGlAF-0002LM-Uw; Sun, 18 May 2025 17:03:19 -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=4r2zLtcvY5KLqe0qar3MepAL0WaT2go0tFrjS/cdfik=; b=sZQ6EbH4txuyJZjL5+8g
 WAIal+YtoBwqdxPjcVuEtcSDJswNcWzbGE8oTRyVoIHB4lghYXAjqmyBW3S/Ggnq9G4XYmjd4w+Ne
 x6NsUDCY5Csg7NR0z+y8ippNbLECrHhSegYcHTYy0qVWl8n2xm/JX6ovJgyd4E/+b90ajkvwJtriW
 oIJOWs2+F4YdoXOszYr2hqq0lY7ECvAGcqegm8jYR8bsTETlWn2+U0CG07AfAptyw7cC1l7jpayvm
 +G0zggYf6jhSYhVnJzy//Oi3aq8Y9hyAa9xjo9n02p/tFBAverLvkr9ouTHVZRszrDNqnC45K7O6x
 xDpMGf7pAkEVkw==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Tomas Volf <~@wolfsden.cz>
Subject: Re: bug#78363: [PATCH 3/3] environment: Make home writable.
In-Reply-To: <31fa9dec8077b8190a840fe2ff17639f522b7d06.1747575576.git.~@wolfsden.cz>
 (Tomas Volf's message of "Sun, 18 May 2025 15:39:36 +0200")
References: <deef3404655dfc5f4fcd572a64dbfd137f950d22.1747575576.git.~@wolfsden.cz>
 <31fa9dec8077b8190a840fe2ff17639f522b7d06.1747575576.git.~@wolfsden.cz>
User-Agent: mu4e 1.12.9; emacs 29.4
X-URL: https://people.bordeaux.inria.fr/lcourtes/
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
X-Revolutionary-Date: Nonidi 29 =?utf-8?Q?Flor=C3=A9al?= an 233 de la
 =?utf-8?Q?R=C3=A9volution=2C?= jour du =?utf-8?B?U8OpbmV2w6k=?=
Date: Sun, 18 May 2025 23:00:56 +0200
Message-ID: <87y0utk513.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78363-done
Cc: Josselin Poiret <dev@HIDDEN>,
 Simon Tournier <zimon.toutoune@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>,
 78363-done <at> debbugs.gnu.org, Tobias Geerinckx-Rice <me@HIDDEN>,
 Christopher Baines <guix@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hello,

Tomas Volf <~@wolfsden.cz> writes:

> * guix/scripts/environment.scm (launch-environment/container): Add tmpfs =
for
> home.
> * tests/guix-environment-container.sh: Add test.
>
> Change-Id: Iadd9b838f6442a8080998ed7e07414db562068bf

I added a =E2=80=9CFixes=E2=80=9D line referencing the initial bug report a=
nd applied
all three patches.  Thanks!

  11e88de060 * environment: Make home writable.
  7a888d9841 * environment: Translate only file names under home directory.
  8654aecf74 * environment: Use inherit for new mapping.

Ludo=E2=80=99.




Notification sent to "Navid.Afkhami@HIDDEN" <Navid.Afkhami@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Ludovic Courtès <ludo@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 78363-done <at> debbugs.gnu.org:


Received: (at 78363-done) by debbugs.gnu.org; 18 May 2025 21:04:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 18 17:04:56 2025
Received: from localhost ([127.0.0.1]:60995 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uGlBn-0007fw-2T
	for submit <at> debbugs.gnu.org; Sun, 18 May 2025 17:04:55 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:53176)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1uGlAM-0007Zu-50
 for 78363-done <at> debbugs.gnu.org; Sun, 18 May 2025 17:03:26 -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 <ludo@HIDDEN>)
 id 1uGlAF-0002LM-Uw; Sun, 18 May 2025 17:03:19 -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=4r2zLtcvY5KLqe0qar3MepAL0WaT2go0tFrjS/cdfik=; b=sZQ6EbH4txuyJZjL5+8g
 WAIal+YtoBwqdxPjcVuEtcSDJswNcWzbGE8oTRyVoIHB4lghYXAjqmyBW3S/Ggnq9G4XYmjd4w+Ne
 x6NsUDCY5Csg7NR0z+y8ippNbLECrHhSegYcHTYy0qVWl8n2xm/JX6ovJgyd4E/+b90ajkvwJtriW
 oIJOWs2+F4YdoXOszYr2hqq0lY7ECvAGcqegm8jYR8bsTETlWn2+U0CG07AfAptyw7cC1l7jpayvm
 +G0zggYf6jhSYhVnJzy//Oi3aq8Y9hyAa9xjo9n02p/tFBAverLvkr9ouTHVZRszrDNqnC45K7O6x
 xDpMGf7pAkEVkw==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Tomas Volf <~@wolfsden.cz>
Subject: Re: bug#78363: [PATCH 3/3] environment: Make home writable.
In-Reply-To: <31fa9dec8077b8190a840fe2ff17639f522b7d06.1747575576.git.~@wolfsden.cz>
 (Tomas Volf's message of "Sun, 18 May 2025 15:39:36 +0200")
References: <deef3404655dfc5f4fcd572a64dbfd137f950d22.1747575576.git.~@wolfsden.cz>
 <31fa9dec8077b8190a840fe2ff17639f522b7d06.1747575576.git.~@wolfsden.cz>
User-Agent: mu4e 1.12.9; emacs 29.4
X-URL: https://people.bordeaux.inria.fr/lcourtes/
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
X-Revolutionary-Date: Nonidi 29 =?utf-8?Q?Flor=C3=A9al?= an 233 de la
 =?utf-8?Q?R=C3=A9volution=2C?= jour du =?utf-8?B?U8OpbmV2w6k=?=
Date: Sun, 18 May 2025 23:00:56 +0200
Message-ID: <87y0utk513.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78363-done
Cc: Josselin Poiret <dev@HIDDEN>,
 Simon Tournier <zimon.toutoune@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>,
 78363-done <at> debbugs.gnu.org, Tobias Geerinckx-Rice <me@HIDDEN>,
 Christopher Baines <guix@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hello,

Tomas Volf <~@wolfsden.cz> writes:

> * guix/scripts/environment.scm (launch-environment/container): Add tmpfs =
for
> home.
> * tests/guix-environment-container.sh: Add test.
>
> Change-Id: Iadd9b838f6442a8080998ed7e07414db562068bf

I added a =E2=80=9CFixes=E2=80=9D line referencing the initial bug report a=
nd applied
all three patches.  Thanks!

  11e88de060 * environment: Make home writable.
  7a888d9841 * environment: Translate only file names under home directory.
  8654aecf74 * environment: Use inherit for new mapping.

Ludo=E2=80=99.




Notification sent to keinflue <keinflue@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Ludovic Courtès <ludo@HIDDEN>:
You have taken responsibility. Full text available.
Merged 78363 78440. Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 78363 <at> debbugs.gnu.org:


Received: (at 78363) by debbugs.gnu.org; 18 May 2025 13:45:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 18 09:45:39 2025
Received: from localhost ([127.0.0.1]:56672 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uGeKg-0002pS-8y
	for submit <at> debbugs.gnu.org; Sun, 18 May 2025 09:45:38 -0400
Received: from wolfsden.cz ([37.205.8.62]:33104)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1uGeKc-0002ie-A7
 for 78363 <at> debbugs.gnu.org; Sun, 18 May 2025 09:45:35 -0400
Received: by wolfsden.cz (Postfix, from userid 104)
 id EBFE9245639; Sun, 18 May 2025 13:45:32 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1747575932; bh=41t/IzOKhnl8vjXQb03H49Cdxrp4kg/vSUVqA17Y9Qs=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=soJ7H4IXTvZJABKcXNhFCChqBhw2UCIz+NaR1d7jXhLyGAQ3PLAJ6HooiOC0qqxlZ
 9HCb2oAujnSWa16k/dm+zrZMtkjFU1B8S4KUrQuo+i2jg9yuk90lUrLAFThloDSuLx
 Tpyt99G85nXo8SnyQI6nJsWwUFnPrfGMcOj7sj6RmnxcWT7yCntEKeX9pTIQifX5xo
 miAYNME17cWkhmReEhFIiuSSnNjXCxRtWP/VHL4qm0oZ7tHa33BAEbqKD2UHtSvYR1
 PvT0dYXfRGfcSq0PEbc4AkIYG0YsVBROxbqhlMIvRWtliATBC2UnD5cZZMnX5uf0SY
 lXwA7RAHemglWDotxRGDb0y0hIpsqlE0gSS6jzIf7dFLlvM8qyzEwU5KCSGCkoT4Vd
 r67QiuX8uI6WSvlUaplKhjGJqevKH3dh9qRUc0SJXvQjMAONFAN1rNl250SAT1UgRm
 9HIXi2Lke0yHCR2tNt8VsYsNhQLhG3BGBCRKeMgTJgpggFooeNYxo23Fh5sn2RdQ0R
 e+1xseIqETOzJQ0azicaOCCDuQcyASfl/8P5iizhmu0cCLrqsjXipWC318NxzV1Q2d
 aRFd2SDtXg86FBjeedAMtDynN885V6e4lMesg+WGSNeUSNl0CcGFSlUucPOr8wK/Hn
 ZfcVQN4UXtGQ5doRfSUbXfAY=
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden
X-Spam-Level: 
X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED
 autolearn=ham autolearn_force=no version=3.4.6
Received: from localhost (unknown [128.0.188.242])
 by wolfsden.cz (Postfix) with ESMTPSA id 96D1B246316;
 Sun, 18 May 2025 13:45:32 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1747575932; bh=41t/IzOKhnl8vjXQb03H49Cdxrp4kg/vSUVqA17Y9Qs=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=soJ7H4IXTvZJABKcXNhFCChqBhw2UCIz+NaR1d7jXhLyGAQ3PLAJ6HooiOC0qqxlZ
 9HCb2oAujnSWa16k/dm+zrZMtkjFU1B8S4KUrQuo+i2jg9yuk90lUrLAFThloDSuLx
 Tpyt99G85nXo8SnyQI6nJsWwUFnPrfGMcOj7sj6RmnxcWT7yCntEKeX9pTIQifX5xo
 miAYNME17cWkhmReEhFIiuSSnNjXCxRtWP/VHL4qm0oZ7tHa33BAEbqKD2UHtSvYR1
 PvT0dYXfRGfcSq0PEbc4AkIYG0YsVBROxbqhlMIvRWtliATBC2UnD5cZZMnX5uf0SY
 lXwA7RAHemglWDotxRGDb0y0hIpsqlE0gSS6jzIf7dFLlvM8qyzEwU5KCSGCkoT4Vd
 r67QiuX8uI6WSvlUaplKhjGJqevKH3dh9qRUc0SJXvQjMAONFAN1rNl250SAT1UgRm
 9HIXi2Lke0yHCR2tNt8VsYsNhQLhG3BGBCRKeMgTJgpggFooeNYxo23Fh5sn2RdQ0R
 e+1xseIqETOzJQ0azicaOCCDuQcyASfl/8P5iizhmu0cCLrqsjXipWC318NxzV1Q2d
 aRFd2SDtXg86FBjeedAMtDynN885V6e4lMesg+WGSNeUSNl0CcGFSlUucPOr8wK/Hn
 ZfcVQN4UXtGQ5doRfSUbXfAY=
From: Tomas Volf <~@wolfsden.cz>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#78363: Home is read-only in guix shell container
In-Reply-To: <875xi0qru6.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Fri, 16 May 2025 21:27:13 +0200")
References: <df56dcfd7fd78f50fe83429db976dc30@HIDDEN>
 <87bjrz2nlg.fsf@HIDDEN> <87msbivqqj.fsf@HIDDEN>
 <87jz6jyx4x.fsf@HIDDEN> <875xi0pncu.fsf@HIDDEN>
 <875xi0qru6.fsf@HIDDEN>
Date: Sun, 18 May 2025 15:45:32 +0200
Message-ID: <87msbajamb.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78363
Cc: keinflue <keinflue@HIDDEN>, 78363 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Ludo',

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> Tomas Volf <~@wolfsden.cz> writes:
>
>> Yeah, I agree.  I can try to produce a patch (I should have some time on
>> Sunday), but obviously anyone feel free to step in.
>
> Wonderful, thanks.  :-)

I have sent a couple of patches to this issue.  It is 3 part series,
each patch is independent though.  First is just a simplification,
second fixes unrelated bug, and third makes home writable.  I can send
the first two as separate issues if your would prefer.

Anyway, let me know what you think.

Tomas

=2D-=20
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQJCBAEBCgAsFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmgp5HwOHH5Ad29sZnNk
ZW4uY3oACgkQL7/ufbZ/wake5w/9F020LGMB9Gi7SKw4n9BGT0leul+lQRkSvta0
IUGoeS9Rff9VZMuuXND8B/Amw+VIN7N1St4lpE/2XACQl8vYh37Yv4tzg4qa+Slp
RtADwzcUanZ7h/lUnpSER+joyEh6B19nJKyDqLq+1qGjBSKOq06302gm08tqzWth
Q3guKBohfxk8G+vzIIBnPrvvrEFKyeKtXVMyAb31H++gyH7JiH/fJe44aaK8PtTp
ibXkLhR6YFf9GyULjmTNUEwnt/Eiv2p3f5RN9tnctQdW/MbyF0CvqjH565Wrc5oI
bfGPNq4lV0OpWl9lxsYhvq+jA2qViJVc5Vx1kVBUjptWEKQRocjv5lMH8XMKyVsN
qrK4F13TzM6+3XRHGf0COU+bkKQpDEtxTonXn6ifZf1LABB4+MvsZ+R6iGhIZTvT
ghfwxWkNAgY0LIESZNef4bwmpz8Ip69kR7t2Iwo9CZrm/g+RZLjczcJZCnpI+jsI
W/lKN+fkQLAv/5oA1mpK+JvyP1I4JHTKy4thj2FIBBAgK4ALya+nElk3pC4lO3cW
YfwJLEaSl/xFJ2/DZF5HtlFE95Vl3ecU47nJzG/aPofIOrStweqiUsYfZw0aB4yG
6EnPqulRhpvK9MVn+Sp559c36LcsYs6OsHzNWzO9l6Ey3QL475j2RrOkBO8bOMZm
ems+MP0=
=Sd2q
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#78363; Package guix. Full text available.

Message received at 78363 <at> debbugs.gnu.org:


Received: (at 78363) by debbugs.gnu.org; 18 May 2025 13:40:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 18 09:40:12 2025
Received: from localhost ([127.0.0.1]:56622 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uGeFO-0001iR-Ni
	for submit <at> debbugs.gnu.org; Sun, 18 May 2025 09:40:12 -0400
Received: from wolfsden.cz ([37.205.8.62]:35796)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1uGeF0-0001gt-O1
 for 78363 <at> debbugs.gnu.org; Sun, 18 May 2025 09:39:53 -0400
Received: by wolfsden.cz (Postfix, from userid 104)
 id 73139246586; Sun, 18 May 2025 13:39:45 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1747575585; bh=P3qg65N3X5OjpCkZ0LQ8utTOMZrOGmEGlPOpsJpQ38w=;
 h=From:To:Cc:Subject:Date:In-Reply-To:References;
 b=lGuMWBF1Ho0MZHb/qDynsuMRfTC5Mv+abAHSO2P/2eK/GENURB8FoiW25+TO7x92h
 PXvFMtemjLjIs476DKXq4fcqo4PDSI8tJw0J1NT6FHggPuyeNvYQEmyGYqhU3zliZM
 vRtM4T/a/5qwJHck8vS5uLev4z7tjGS4ZDPq2bvU43+p/Vhpp/kZcslZkcriBf2IMl
 HgBmYJ2p90oXO39u6RZzpWGeHMnxkYS3GT3/Tnqk7vnSLuSz5KM1X2N+WebgdcnnEE
 lJTOK/oOohtcEUxOoFGoxQlmByajSXPQymDAat1sth+wh6DwgnIDpjpmHlbZCzB65e
 QLycvUC+cbXIMbC+7m3dnXSSRkLvjJ1AqJ9sFe4FJHKuufcQBpSERMyq8DAPV3RPuy
 pTm6YefAphawjwsqi294OnkU0l+3IvIRAvsgtNyOwno19awKcJwe45sMTsXEP9WxV3
 eWyt27UxT8ZqrD2TTKKTPDcr5qmBVnwAG5qbPBYMsSt5C1O27RWKbR7gli6NMV3Lwn
 UFAT3WgSElRxoU+shod5AukdM7L9j0qq8veOn3cRgqgtNo5HORkehggekqGigO9MY9
 klKSTKzifD4te5ZgAalftWsM449y5FCDyYqtWsGQxQOTcAs1Pqzru6jEX7qV0bJKkp
 7mzEpfsCQsQ0xwlp6kDnQKfU=
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden
X-Spam-Level: 
X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED
 autolearn=ham autolearn_force=no version=3.4.6
Received: from localhost (unknown [128.0.188.242])
 by wolfsden.cz (Postfix) with ESMTPSA id 9D477246506;
 Sun, 18 May 2025 13:39:44 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1747575584; bh=P3qg65N3X5OjpCkZ0LQ8utTOMZrOGmEGlPOpsJpQ38w=;
 h=From:To:Cc:Subject:Date:In-Reply-To:References;
 b=UvSgptgoRcUsfOCnCUVXjmHh01CnR3UlpEO7BG3YLTHoN6jnvQlKmlN13ePnGrvap
 mmgDAcOQbv2qiesI2BcLunqWM9WclVo5ETQ/1hZeyAmnY57RqC0g1KDmKlDbqmyqt3
 suvet1Pb5traNEmOhbFoXtL3KL40RyE38SVYs+to1vzrS5modbZkG7J/iSXUK6Bl0B
 3JVagCmKFDhBjhJjqz4r7qo6gLiaxl7WoTQoD5M/NgkvSAxXkxASQ+cvemQaHIdo6+
 CfjFR9dKz6JRBcMUxe4tJ3k4QBfwDVzxhPkUDrWiSuBPWDevXVnlmXY7bomupAbi0r
 CyEHIAQjp5k4ZWXTk8GJwHWacdqzAaq5gM4UtU8v1ZLam7YLA2DrYXZqFI5Y1bian4
 efAG4u0vR86+MtJRfnP86B44KXy3xkom6UdRdYXKXmnTUe+yxv1NRKcnOsAc9gGLr0
 LSomVRKh8J+XsL6UxVOwgYW7jlgbLeU0ApowzI3hT+gpdJtx5I4n2l74Q3O2M5fZse
 /dNxQFuJuBUisz3TdUAkYf3Xs3v5lun+UrbMVQmRCHZ5YcFR9OCt/giD67SmRBnH1c
 J6Qa4sv5xyVfa2Us2vU0M68hFOXbdFpUHM9dLJ45psfF0Vnzr1DO4idDS1um8MavMm
 uTEpoEZd7JXSwOBJWLv1vja0=
From: Tomas Volf <~@wolfsden.cz>
To: 78363 <at> debbugs.gnu.org
Subject: [PATCH 3/3] environment: Make home writable.
Date: Sun, 18 May 2025 15:39:36 +0200
Message-ID: <31fa9dec8077b8190a840fe2ff17639f522b7d06.1747575576.git.~@wolfsden.cz>
X-Mailer: git-send-email 2.49.0
In-Reply-To: <deef3404655dfc5f4fcd572a64dbfd137f950d22.1747575576.git.~@wolfsden.cz>
References: <deef3404655dfc5f4fcd572a64dbfd137f950d22.1747575576.git.~@wolfsden.cz>
MIME-Version: 1.0
X-Debbugs-Cc: Christopher Baines <guix@HIDDEN>, Josselin Poiret <dev@HIDDEN>, Ludovic Courtès <ludo@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78363
Cc: Tomas Volf <~@wolfsden.cz>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* guix/scripts/environment.scm (launch-environment/container): Add tmpfs for
home.
* tests/guix-environment-container.sh: Add test.

Change-Id: Iadd9b838f6442a8080998ed7e07414db562068bf
---
 guix/scripts/environment.scm        | 9 ++++++++-
 tests/guix-environment-container.sh | 4 ++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index bc06e97d7b..96bbc6c9fa 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -874,7 +874,14 @@ (define* (launch-environment/container #:key command bash user user-mappings
                       (writable? #f)))
                    reqs)))
             (file-systems (append %container-file-systems
-                                  (list tmpfs)
+                                  (list tmpfs        ; RW /tmp
+                                        (file-system ; RW ~
+                                          (device "none")
+                                          (mount-point
+                                           (or (and=> user user-override-home)
+                                               home))
+                                          (type "tmpfs")
+                                          (check? #f)))
                                   (if network?
                                       (filter-map optional-mapping->fs
                                                   %network-file-mappings)
diff --git a/tests/guix-environment-container.sh b/tests/guix-environment-container.sh
index d0f19c8372..e1c3655846 100644
--- a/tests/guix-environment-container.sh
+++ b/tests/guix-environment-container.sh
@@ -199,6 +199,10 @@ guix environment --bootstrap --container --ad-hoc guile-bootstrap	\
 guix environment --bootstrap --container --ad-hoc guile-bootstrap \
      -- guile -c '(mkdir "/tmp/foo")'
 
+# And so is ~.
+guix environment --bootstrap --container --ad-hoc guile-bootstrap \
+     -- guile -c '(mkdir (string-append (getenv "HOME") "/foo"))'
+
 
 # Check the exit code.
 
-- 
2.49.0





Information forwarded to guix@HIDDEN, dev@HIDDEN, ludo@HIDDEN, othacehe@HIDDEN, zimon.toutoune@HIDDEN, me@HIDDEN, bug-guix@HIDDEN:
bug#78363; Package guix. Full text available.

Message received at 78363 <at> debbugs.gnu.org:


Received: (at 78363) by debbugs.gnu.org; 18 May 2025 13:39:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 18 09:39:56 2025
Received: from localhost ([127.0.0.1]:56620 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uGeF9-0001hU-5e
	for submit <at> debbugs.gnu.org; Sun, 18 May 2025 09:39:55 -0400
Received: from wolfsden.cz ([37.205.8.62]:35784)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1uGeF0-0001go-O1
 for 78363 <at> debbugs.gnu.org; Sun, 18 May 2025 09:39:51 -0400
Received: by wolfsden.cz (Postfix, from userid 104)
 id 3AC67245B36; Sun, 18 May 2025 13:39:44 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1747575584; bh=P0X6Qi5NqI88t5jWMWiHWVZZJDpsVNcrj2t1AQpZFqU=;
 h=From:To:Cc:Subject:Date;
 b=dN7LZ/bS+GFU93mD2F08Cijya2QIl/Z2OqzEOEZZCPLAHFCU2Akt2/7QpDnFenlSo
 RHYkUlkZaoZe2+rAUuO/pcSc0L+rfMQob+B2aDNyNf6sSjR88ep1YkopNviEKBs71l
 qDk2n3laUmeQf8c3tdCKvIxptIye2jLvBlq19sX+OjPOasQ5dUj5A7JlMMHV15qc4K
 WlAV7iD+M3soG8zH7WfzF4ELRi+h2aM216veGh2Y27X3WD3f9vP3rHCNZVq/Lup6CM
 EJmC/YC16BHa2hDCOOIrR2tL4j+VSnLZwuHanOn4tgXbZ4vWpiO0vov+fizl61FhyA
 48dSKWF014yZPYvmiOlufRPg8m87Akhe+yvK1U1/YhrE4ozmP2TAuxwZaOUnWQnGQ5
 nX/1LVZQdh/ThC3/Rl5pHrGjqndSErU8sWGkne2qODufETZsd43vk7VOryoZU6S2/k
 1/pEHhQHZXpM8xLlSE7B/qZsGWrHkBFZyCohR0bnCrX/9s92kOC/W/MguvdxZe4hmN
 fQ4hdxKTTcHe3lRp3ZoGCISdepkGMkwUMHn3oB24V458PTtYtsaZVjlb6MCJyyqtke
 uFybYPj01FbTxWJrPishgU6GK20zlCxHTRDNthukaukbkDSrJx5PKoQvbrbkkwkn28
 qsnaLwskNk7qAZNxSe3JO8QA=
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden
X-Spam-Level: 
X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED
 autolearn=ham autolearn_force=no version=3.4.6
Received: from localhost (unknown [128.0.188.242])
 by wolfsden.cz (Postfix) with ESMTPSA id 697D72455A3;
 Sun, 18 May 2025 13:39:43 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1747575583; bh=P0X6Qi5NqI88t5jWMWiHWVZZJDpsVNcrj2t1AQpZFqU=;
 h=From:To:Cc:Subject:Date;
 b=m6r9U4EvmMGYujWp0TaQESQJi6nWsgTNbiVlEW8NuXwjn3e5ELCNy8TE8DOkBvjZN
 DIEFtlKYhb2lKjU9mr+QjcBQEEUSYjy7W/DMnO7agXzcgXi4nWgEb/uh2Z4BkU5kHi
 MXY4sl/KcGg9ciM0AzBuFrfnGtkwLLsGArQ2aiiE+V/s6Sxbh8grZxu9LOe0Va3r0+
 XEfUJMOn0glymDhzlXnW8vV0LWRVtiHtRhuV72X7qaCQmNgvBpPJge3nqm+pY62GLs
 gfe4AXCgt8iP0MMq1F2AIoy6gTpLlAk5nNnYi4QpB0JTmhccy431OmxBuYmFujxm7n
 OdZ15miJBQEkvjDSwWctHYK3MG4mQmy7uDIej1ZgmcqWGjF5IDgZyO6cO5kzr/x63y
 62m+frPu3qwKmTVT7ICCfOQdiYpditvMv8rgoryoO3Mi52mCHBDUDwJ00QVcf0tnLG
 YHvcwuVCDqmXVAMSHMV+wr1fspmUs2vhjjv0/mALCDEYgrHTTUJfxjhxN6ss+QVCRF
 na4q31S0Os5ofp7BxjJJA/j71kQ4KX6dW6GxgKDk+VYOxxiuSLkcFM8ZrJ2zMCCjSc
 ns/a1YpheqrmiODqq4W5FWZEXftDUj8jzwHjvAG6WJtaI1tk1TXNBZCvFIlsDoR8+r
 NxrSs12FJDhCrKLLvvOdQqn0=
From: Tomas Volf <~@wolfsden.cz>
To: 78363 <at> debbugs.gnu.org
Subject: [PATCH 1/3] environment: Use inherit for new mapping.
Date: Sun, 18 May 2025 15:39:34 +0200
Message-ID: <deef3404655dfc5f4fcd572a64dbfd137f950d22.1747575576.git.~@wolfsden.cz>
X-Mailer: git-send-email 2.49.0
MIME-Version: 1.0
X-Debbugs-Cc: Christopher Baines <guix@HIDDEN>, Josselin Poiret <dev@HIDDEN>, Ludovic Courtès <ludo@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78363
Cc: Tomas Volf <~@wolfsden.cz>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* guix/scripts/environment.scm (override-user-mappings): Use inherit.

Change-Id: Iadd9b838f6442a8080998ed7e07414db562068bf
---
 guix/scripts/environment.scm | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index 7103fdaf20..3c66906793 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -989,9 +989,8 @@ (define (override-user-mappings user home mappings)
              (let ((target (file-system-mapping-target mapping)))
                (if (string-prefix? home target)
                    (file-system-mapping
-                    (source    (file-system-mapping-source mapping))
-                    (target    (override-user-dir user home target))
-                    (writable? (file-system-mapping-writable? mapping)))
+                    (inherit mapping)
+                    (target (override-user-dir user home target)))
                    mapping)))
            mappings)))
 
-- 
2.49.0





Information forwarded to guix@HIDDEN, dev@HIDDEN, ludo@HIDDEN, othacehe@HIDDEN, zimon.toutoune@HIDDEN, me@HIDDEN, bug-guix@HIDDEN:
bug#78363; Package guix. Full text available.

Message received at 78363 <at> debbugs.gnu.org:


Received: (at 78363) by debbugs.gnu.org; 18 May 2025 13:39:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 18 09:39:55 2025
Received: from localhost ([127.0.0.1]:56618 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uGeF8-0001hR-FC
	for submit <at> debbugs.gnu.org; Sun, 18 May 2025 09:39:55 -0400
Received: from wolfsden.cz ([37.205.8.62]:35790)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1uGeF0-0001gp-O1
 for 78363 <at> debbugs.gnu.org; Sun, 18 May 2025 09:39:51 -0400
Received: by wolfsden.cz (Postfix, from userid 104)
 id 7BD012459C4; Sun, 18 May 2025 13:39:44 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1747575584; bh=PUY5rJ2rxxnK8USCvjZpOvGs8uQopQ15VIBKL5n7d+g=;
 h=From:To:Cc:Subject:Date:In-Reply-To:References;
 b=nwo0KzYlmWhKpt2werfMr0cwCx37ump9FiJ1BMP58fna+MR9q/5GPGtZqxCGCLny2
 ru6v06tU4fQSrL5Sn+NDrjBC9OISVjpJWvgRiv6MP+X2MPa9l9S7A8QFksg2z22ozZ
 0ZTOyZLrDCWbtwKAx+/LOBKTU6/YqWrJBMQFkD9Lm0tuc8dfINKolDq7jFcymtwWR1
 RDwI5zamqyt4WF/2Pal53n++cCGqOGU2r2+VcZiC0S0JVFQLZAeT3enqSdV8PnCf3a
 whFI0b1G1ydwvh7BwZWEll8Wn19N1ZEpu3a1fUqk7ozzsyrjp8cu4N653hrNbwf39L
 3TjK4xGgLb9dXoUFTSrW1Zqrg4AoUopn0DCC0pjFikBzZwtKIcl82XfOWf99Q4pgLo
 axEBpNkdkNvArxHHoaUu5KFwoftL/NYDcjtCB/8OFkKyw1ZnFJFoK+L2fqfIfuvP3t
 3n5EOCHqQp0ba6YK9enWYoDWPeeZ9gvsOgWaKhil220m2hn1AOLff6geTCRKGd7ZSY
 tmi+1UB8rfiJLldhzdcW22BcYVSK8iq+7YYKKeyqUr7TzTipfUmYCBiVTsojcz//V2
 UUOX+RuJFQ0KapXBzSnif2NRjjohz88WGvgTBPeaoZARTjXCSe4y4zfKRKoebBJDgI
 XjUPrBYTLo+Exr8MXNCv1ngo=
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden
X-Spam-Level: 
X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED
 autolearn=ham autolearn_force=no version=3.4.6
Received: from localhost (unknown [128.0.188.242])
 by wolfsden.cz (Postfix) with ESMTPSA id 09D73246516;
 Sun, 18 May 2025 13:39:44 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1747575584; bh=PUY5rJ2rxxnK8USCvjZpOvGs8uQopQ15VIBKL5n7d+g=;
 h=From:To:Cc:Subject:Date:In-Reply-To:References;
 b=nwo0KzYlmWhKpt2werfMr0cwCx37ump9FiJ1BMP58fna+MR9q/5GPGtZqxCGCLny2
 ru6v06tU4fQSrL5Sn+NDrjBC9OISVjpJWvgRiv6MP+X2MPa9l9S7A8QFksg2z22ozZ
 0ZTOyZLrDCWbtwKAx+/LOBKTU6/YqWrJBMQFkD9Lm0tuc8dfINKolDq7jFcymtwWR1
 RDwI5zamqyt4WF/2Pal53n++cCGqOGU2r2+VcZiC0S0JVFQLZAeT3enqSdV8PnCf3a
 whFI0b1G1ydwvh7BwZWEll8Wn19N1ZEpu3a1fUqk7ozzsyrjp8cu4N653hrNbwf39L
 3TjK4xGgLb9dXoUFTSrW1Zqrg4AoUopn0DCC0pjFikBzZwtKIcl82XfOWf99Q4pgLo
 axEBpNkdkNvArxHHoaUu5KFwoftL/NYDcjtCB/8OFkKyw1ZnFJFoK+L2fqfIfuvP3t
 3n5EOCHqQp0ba6YK9enWYoDWPeeZ9gvsOgWaKhil220m2hn1AOLff6geTCRKGd7ZSY
 tmi+1UB8rfiJLldhzdcW22BcYVSK8iq+7YYKKeyqUr7TzTipfUmYCBiVTsojcz//V2
 UUOX+RuJFQ0KapXBzSnif2NRjjohz88WGvgTBPeaoZARTjXCSe4y4zfKRKoebBJDgI
 XjUPrBYTLo+Exr8MXNCv1ngo=
From: Tomas Volf <~@wolfsden.cz>
To: 78363 <at> debbugs.gnu.org
Subject: [PATCH 2/3] environment: Translate only file names under home
 directory.
Date: Sun, 18 May 2025 15:39:35 +0200
Message-ID: <f4a2353337a7d16e3b675b0ada1bf1001fb15c3e.1747575576.git.~@wolfsden.cz>
X-Mailer: git-send-email 2.49.0
In-Reply-To: <deef3404655dfc5f4fcd572a64dbfd137f950d22.1747575576.git.~@wolfsden.cz>
References: <deef3404655dfc5f4fcd572a64dbfd137f950d22.1747575576.git.~@wolfsden.cz>
MIME-Version: 1.0
X-Debbugs-Cc: Christopher Baines <guix@HIDDEN>, Josselin Poiret <dev@HIDDEN>, Ludovic Courtès <ludo@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78363
Cc: Tomas Volf <~@wolfsden.cz>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* guix/scripts/environment.scm (file-name-equal-or-under?): New procedure.
(override-user-mappings, override-user-dir): Use it.

Change-Id: Iadd9b838f6442a8080998ed7e07414db562068bf
---
 guix/scripts/environment.scm | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index 3c66906793..bc06e97d7b 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -979,6 +979,12 @@ (define (user-override-home user)
   "Return home directory for override user USER."
   (string-append "/home/" user))
 
+(define (file-name-equal-or-under? file-name directory)
+  "Is @var{file-name} equal to or under @var{directory}?"
+  (or (string=? directory file-name)
+      (and (string-prefix? directory file-name)
+           (char=? #\/ (string-ref file-name (string-length directory))))))
+
 (define (override-user-mappings user home mappings)
   "If a username USER is provided, rewrite each HOME prefix in file system
 mappings MAPPINGS to a home directory determined by 'override-user-dir';
@@ -987,7 +993,7 @@ (define (override-user-mappings user home mappings)
       mappings
       (map (lambda (mapping)
              (let ((target (file-system-mapping-target mapping)))
-               (if (string-prefix? home target)
+               (if (file-name-equal-or-under? target home)
                    (file-system-mapping
                     (inherit mapping)
                     (target (override-user-dir user home target)))
@@ -997,7 +1003,7 @@ (define (override-user-mappings user home mappings)
 (define (override-user-dir user home dir)
   "If username USER is provided, overwrite string prefix HOME in DIR with a
 directory determined by 'user-override-home'; otherwise, return DIR."
-  (if (and user (string-prefix? home dir))
+  (if (and user (file-name-equal-or-under? dir home))
       (string-append (user-override-home user)
                      (substring dir (string-length home)))
       dir))
-- 
2.49.0





Information forwarded to guix@HIDDEN, dev@HIDDEN, ludo@HIDDEN, othacehe@HIDDEN, zimon.toutoune@HIDDEN, me@HIDDEN, bug-guix@HIDDEN:
bug#78363; Package guix. Full text available.

Message received at 78363 <at> debbugs.gnu.org:


Received: (at 78363) by debbugs.gnu.org; 16 May 2025 20:45:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 16 16:45:50 2025
Received: from localhost ([127.0.0.1]:41224 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uG1wE-0003XS-Hb
	for submit <at> debbugs.gnu.org; Fri, 16 May 2025 16:45:50 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:42060)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1uG1wB-0003Vv-RP
 for 78363 <at> debbugs.gnu.org; Fri, 16 May 2025 16:45:48 -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 <ludo@HIDDEN>)
 id 1uG1w5-0004Zl-Je; Fri, 16 May 2025 16:45:41 -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=i9JbImFcqSlIFcN6F+y8Hvs9TnDO0fDmv2+fX9c5cXA=; b=S/qxEMyWVsXcg8hHDeKy
 hvjUTAGuwvqXv4hWqzSUsC5h52uVx6e+dJWBd+Th+1p1LYUL2a/dDCY95+XhnHlGC5oMnl8IN7leP
 hoCq5n/9VD1quNEygt3FaDIUhaCz4ywPjBqMoFQVyG+a9hoaxMm8iCv8PTk2TGbWQcCA4ZKA4bqeW
 mEwW9C4ejhfnlNAXrgaWEzdwykF9zyS3AeBpQq8J0BXmc//I3B9kqhdbNdJnSTZYsHhbndL5xbxkK
 CaI6TScdwTXw69CwjAMPIO8AOWcSjb7nulNJ7w1u+cuX3GuXUzZkryn3HWZ8naDiO3hAOgPhxsicO
 tPZ8r0SL489Y+Q==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Tomas Volf <~@wolfsden.cz>
Subject: Re: bug#78363: Home is read-only in guix shell container
In-Reply-To: <875xi0pncu.fsf@HIDDEN> (Tomas Volf's message of "Fri, 16
 May 2025 17:49:21 +0200")
References: <df56dcfd7fd78f50fe83429db976dc30@HIDDEN>
 <87bjrz2nlg.fsf@HIDDEN> <87msbivqqj.fsf@HIDDEN>
 <87jz6jyx4x.fsf@HIDDEN> <875xi0pncu.fsf@HIDDEN>
User-Agent: mu4e 1.12.9; emacs 29.4
X-URL: https://people.bordeaux.inria.fr/lcourtes/
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
X-Revolutionary-Date: Septidi 27 =?utf-8?Q?Flor=C3=A9al?= an 233 de la
 =?utf-8?Q?R=C3=A9volution=2C?= jour de la Civette
Date: Fri, 16 May 2025 21:27:13 +0200
Message-ID: <875xi0qru6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78363
Cc: keinflue <keinflue@HIDDEN>, 78363 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Tomas Volf <~@wolfsden.cz> writes:

> Yeah, I agree.  I can try to produce a patch (I should have some time on
> Sunday), but obviously anyone feel free to step in.

Wonderful, thanks.  :-)

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#78363; Package guix. Full text available.

Message received at 78363 <at> debbugs.gnu.org:


Received: (at 78363) by debbugs.gnu.org; 16 May 2025 15:49:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 16 11:49:28 2025
Received: from localhost ([127.0.0.1]:40285 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFxJP-0006QI-Ks
	for submit <at> debbugs.gnu.org; Fri, 16 May 2025 11:49:28 -0400
Received: from wolfsden.cz ([37.205.8.62]:60156)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1uFxJM-0006PY-79
 for 78363 <at> debbugs.gnu.org; Fri, 16 May 2025 11:49:25 -0400
Received: by wolfsden.cz (Postfix, from userid 104)
 id 1F1A838E6B4; Fri, 16 May 2025 15:49:22 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1747410562; bh=JUxqGKb5NWEdbgtwQ9p3LvVHuVswnGJ7KLYO/AinuL4=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=EA1Y/o6hz9SXw3hcfAa9D4qRz4jJfNgKJqtf7gKnXXmrodvR1pUr5D+MAkHiJEqoK
 f1ywh/O8MckaiT8aGND4t+oIW0KYSia0Hv/ObPalusBBHHNPbBGixrhKZpVfJCzQc5
 hu/Nn550aOak1YKR9BV9psjePndikGBvA1oUiQo0yMQL0pM/iNbNCMDB+g+QTAXLYF
 gPNsdqceUxePqftjFg94irMrY9u9gBcCBBEm/LKiyFLfyi2+O8LCZX7kmDDRwrhFtf
 nbTge5hbzeC5WB03FGkDNGS52n70u3QRUeMymI4lUdOgmLbRYMdbVqvltkfBXOOjvH
 +Cp9FjEN9f7DOMt1IP9ddEP5ZcddXQFcIuJxxp5LUYWbWFHZN/+KboiFIjDxUQdOe/
 Cjh+b6At+De6J1Oiasae+V2EtNNWpxHXBVyiRs0UujfnEdNyn1aijeo3SJgOHsZUvE
 KAEzR8Ve9TsOlVogQ6+/cLH8YvqQ5d1M5hRNiyjJVaTvDqcI0DPL5XQlYa6KP2FX4c
 1fPwjK+iNqjuPItUtI2fB8HQovqfCor3NNcud2rwlMy+u6H9tYWCRE4kGMC/h1SoL/
 EEqJOEXgVV88MFb+qXWiwIoT1/36JW6NGNXLciviS6CD6ndjrECAx1xdGR3Qmcmgeh
 GhYtj+ayCS5ZaHd9TBUekdJI=
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden
X-Spam-Level: 
X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED
 autolearn=ham autolearn_force=no version=3.4.6
Received: from localhost (unknown [128.0.188.242])
 by wolfsden.cz (Postfix) with ESMTPSA id ACCCC38ED9B;
 Fri, 16 May 2025 15:49:21 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1747410561; bh=JUxqGKb5NWEdbgtwQ9p3LvVHuVswnGJ7KLYO/AinuL4=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=ms3wk+I78KRwn8p4Ii4U6q2yLYZe36fvbpJuIfw1KjrOIlrl+ZEz0ccxoXrqLfzs5
 gS53jiVIBxh/a+5l8Y0W1BigjJ3bEj/8To1jgzTnEw51AwXgQUp4tq2Dl7ToIV2KxR
 xfT8ifYAmtOv5WAUshOz63aZLaTGFPNRAud4tkWtkkT+rVdELWavyMxck9IoF3C9ks
 8DMU5b0lSzDHhpiPR3mJidgjdwSmjfmxrP/Amv5o7IJKNNeu5XnD4z1i+3523iDqp5
 Z0Wm2+1eoqReJedBdOoBMFA4IB3nvxYwQmnj0D+dC2AspuEdaccwib2EKfFpCENWBm
 FZZBHy7OkSRI/qGnUwQN9pE+JeDMQAKR6WGimBPXKDF5Pr6HFjtu5heL7NJZG6Pt04
 B5UijFKVs1QwsX2xFfcffTH4QX5p0P8F+vGw9QTKbk4AR7BIaVmJemggNSOt53aaOE
 FQY1iKb63GnRsSDCSaaygt+aQAMzDe9FOxm1Z3NhlEGeoJW7HvV4vsf3n+VfkdaaCQ
 /ae5KlST5NB7lcjurRtCwB6LGQhOhoD/Pdb9p4CjRVUb3hq2i9QAA8xUTmW/rb0v7e
 hGQwRzWdlc0fei/PK/N4bJ0ntJ6kc8ugDS0dlOTBdikHY1mn03NfJE0QNNZ/6Bw6az
 SMdk3+sasEjsDmUvQNyzZWj4=
From: Tomas Volf <~@wolfsden.cz>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#78363: Home is read-only in guix shell container
In-Reply-To: <87jz6jyx4x.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Wed, 14 May 2025 18:28:46 +0200")
References: <df56dcfd7fd78f50fe83429db976dc30@HIDDEN>
 <87bjrz2nlg.fsf@HIDDEN> <87msbivqqj.fsf@HIDDEN>
 <87jz6jyx4x.fsf@HIDDEN>
Date: Fri, 16 May 2025 17:49:21 +0200
Message-ID: <875xi0pncu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78363
Cc: keinflue <keinflue@HIDDEN>, 78363 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

>>> As noted in the =E2=80=98guix pull=E2=80=99 news, you can use =E2=80=98=
--writable-root=E2=80=99.
>>> Otherwise, everything but the current directory and /tmp is read-only.
>>
>> Does that make sense though?  You have already made an exception for
>> /tmp, I would argue that ~ is another candidate for special-casing.
>>
>> I think people would reasonably expect that touching a file in your own
>> home should work.  But it does not:
>>
>> $ guix shell --no-cwd -C coreutils bash -- sh -c 'touch ~/foo'
>> touch: cannot touch '/home/user/foo': Read-only file system
>>
>>
>> Some software just fails to start in the container:
>>
>> $ guix shell --no-cwd -C deluge -- deluged
>> 20:22:20 [ERROR   ][deluge.common:136 ] Unable to use default config dir=
ectory, exiting... ([Errno 30] Read-only file system: '/home/user/.config')
>
> It=E2=80=99s surprising that deluged tries to write to ~/.config,

In absence of the configuration, it generates default one and stores it
into the ~/.config/deluge.  This behavior is sensible for this specific
program.

> but yeah, more generally, I agree that many programs will want to
> write to ~/.cache and the likes.
>
> So hmm, maybe we can make another exception?  It doesn=E2=80=99t hurt any=
way
> since it=E2=80=99s a tmpfs.

Yeah, I agree.  I can try to produce a patch (I should have some time on
Sunday), but obviously anyone feel free to step in.

Tomas

=2D-=20
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQJCBAEBCgAsFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmgnXoEOHH5Ad29sZnNk
ZW4uY3oACgkQL7/ufbZ/wak0sg//Ti6P6lnebw708yVUy1hyOU6uNaNM9IkfHJP3
rMvUSrm2SZJHZe5u1dWi1HfqbOrpKeq34LLeMUiSGFQCC+CQUiOr3fT3pDKzJhAq
wfOZ+SVJ9Awi51hWQvzSwlrzfoIg3q5jOVTUnLpB5gFkk4Le0QAg62tdC4cvo+M+
oKQwMVExUrMP1O86dwsSik2/h4nl9IRY1N3o5exuvOsWwrUDZXL5soWxJtVIIaLX
+Rq8LlMOzsISJRVX5QxAjDusHCPsanP0QE32c1XV7VnAuFHhBjidUHOCFtrvPRCI
ulKf8HMZvlTOQwYohRJq7/4StZbW6s9a+v47Btqo30ac6SfYi/fuWdM+ehMcGta8
C7tDOhKUBsL0BiaEq5pdcC8bZQ+9eo4Dq1V8tTtpMYOhjdGUO3Ejc/A4cszu5Irz
DaYjrFCCd0NBqNDVEO9fi+h+oWLodvkcaapV4yrJeHKYyQa+H12nuyio60FI4qGS
O8HPjz78blqpahhfCDHuW0AvKt6j63QA4KKiCsTOuxszTIQx0rEuJpJ/Y02BNjgi
+kFbE/VAjnzh7jLdgYDH07q8k6FAPY4hVGtznUANgPycz79WefszhM3yzc7mkFoD
UNPYyPbertjkb3X/GWL1V2EdevQOgjQ/7QiFa+Vhqp7hNno59D2/OtqiQYdjOhCq
Hpz2jaA=
=WXpD
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#78363; Package guix. Full text available.

Message received at 78363 <at> debbugs.gnu.org:


Received: (at 78363) by debbugs.gnu.org; 14 May 2025 17:04:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 14 13:04:11 2025
Received: from localhost ([127.0.0.1]:44773 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFFWd-0004oh-5L
	for submit <at> debbugs.gnu.org; Wed, 14 May 2025 13:04:11 -0400
Received: from hera.aquilenet.fr ([185.233.100.1]:47832)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1uFFWY-0004md-DA
 for 78363 <at> debbugs.gnu.org; Wed, 14 May 2025 13:04:07 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 168E3E4B;
 Wed, 14 May 2025 19:03:57 +0200 (CEST)
X-Virus-Scanned: Debian amavis at hera.aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavis, port 10024) with ESMTP
 id 7QiojIAGGxfx; Wed, 14 May 2025 19:03:56 +0200 (CEST)
Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 68FEDD96;
 Wed, 14 May 2025 19:03:56 +0200 (CEST)
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Tomas Volf <~@wolfsden.cz>
Subject: Re: bug#78363: Home is read-only in guix shell container
In-Reply-To: <87msbivqqj.fsf@HIDDEN> (Tomas Volf's message of "Sun, 11
 May 2025 22:26:12 +0200")
References: <df56dcfd7fd78f50fe83429db976dc30@HIDDEN>
 <87bjrz2nlg.fsf@HIDDEN> <87msbivqqj.fsf@HIDDEN>
Date: Wed, 14 May 2025 18:28:46 +0200
Message-ID: <87jz6jyx4x.fsf@HIDDEN>
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-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 78363
Cc: keinflue <keinflue@HIDDEN>, 78363 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

Hello,

Tomas Volf <~@wolfsden.cz> writes:

>> As noted in the =E2=80=98guix pull=E2=80=99 news, you can use =E2=80=98-=
-writable-root=E2=80=99.
>> Otherwise, everything but the current directory and /tmp is read-only.
>
> Does that make sense though?  You have already made an exception for
> /tmp, I would argue that ~ is another candidate for special-casing.
>
> I think people would reasonably expect that touching a file in your own
> home should work.  But it does not:
>
> $ guix shell --no-cwd -C coreutils bash -- sh -c 'touch ~/foo'
> touch: cannot touch '/home/user/foo': Read-only file system
>
>
> Some software just fails to start in the container:
>
> $ guix shell --no-cwd -C deluge -- deluged
> 20:22:20 [ERROR   ][deluge.common:136 ] Unable to use default config dire=
ctory, exiting... ([Errno 30] Read-only file system: '/home/user/.config')

It=E2=80=99s surprising that deluged tries to write to ~/.config, but yeah,=
 more
generally, I agree that many programs will want to write to ~/.cache and
the likes.

So hmm, maybe we can make another exception?  It doesn=E2=80=99t hurt anyway
since it=E2=80=99s a tmpfs.

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#78363; Package guix. Full text available.

Message received at 78363 <at> debbugs.gnu.org:


Received: (at 78363) by debbugs.gnu.org; 11 May 2025 20:26:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 11 16:26:22 2025
Received: from localhost ([127.0.0.1]:43585 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uEDFa-0005HD-Q3
	for submit <at> debbugs.gnu.org; Sun, 11 May 2025 16:26:21 -0400
Received: from wolfsden.cz ([37.205.8.62]:50498)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1uEDFX-0005Gb-36
 for 78363 <at> debbugs.gnu.org; Sun, 11 May 2025 16:26:17 -0400
Received: by wolfsden.cz (Postfix, from userid 104)
 id 4F488388493; Sun, 11 May 2025 20:26:13 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1746995173; bh=GwlDfTezWnHbJ2NDrqlPKpigsP+0Rz7wXbPymm2kxEQ=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=Ow0XqfKZYj+NQMPLIHl4KdGMvu/dayz2aZQr1gjiGhqxJIaniSOpsq/AOzV6JbqSx
 qMJCup4/ql2B0o3c/GA47Zxe4AXdm8bX8gfAHqX4WMCLdGNT8CGjNQd98hr4XnXEnO
 dmgF02zsqFHXTUR6ijjneqBpoeSEVz5QD1wbwCT+Nl4b3PgPQo7EhmtTiKJ5dIBjeb
 lwKXy2cF7AQSqShwSTho+KAjBBal4F5N93hIFIqKQ56qWH9vryZiCaE0jUxuTA9z2Q
 MDBKF83MzxW1D1h/3lAAKuWA5lg/Y+VjTTBRzVRLLaU25jV8SV+L1kD+0+Ap6pBOxi
 jGiS0C5x5qCl0ms2wslO+jDLelALYkW4qwpcfD0dmPxrlEhcW4gGa6ugakxLv2A0XG
 W1X4V0EHAoA5AFi2srkeiAYq7sjwJ8vREU20ivJ1sZh42mDe7Kr7Y49zZC6O6ccR9H
 FncjM06zBSKgAeFv08mMW8146HYaQjGVkrl2Ec62dlKZiEEz7SPdH27FMkiFTXgLAK
 yxmsecCWlo0VRVOybu9uBffKTTboxcpDGqMZpnTq58D8TyDU9Ydly3UUOBPrwAKanm
 uhLbLKGp/nHia9uyGYRxj3d9tJfgq1JWhnoanly1l4n6wAghbiHrUwlpEARiT3aoXH
 f1/QySCmu3xNTbBOK/pZ1MGU=
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden
X-Spam-Level: 
X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED
 autolearn=ham autolearn_force=no version=3.4.6
Received: from localhost (unknown [128.0.188.242])
 by wolfsden.cz (Postfix) with ESMTPSA id E4435386EEE;
 Sun, 11 May 2025 20:26:12 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1746995172; bh=GwlDfTezWnHbJ2NDrqlPKpigsP+0Rz7wXbPymm2kxEQ=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=ooWbaBmx+BCNbNElTfbbtOYq9CwTBcVj61wM0mcOh3zl73LIvqOs0U6+K7RA4GSbY
 mu6/NN7PCPQXZFhJLLwzarcX5idPDsYoG6N2NJ3YdgYz5I4TmPs8Nn0MONyL3ur5si
 LEKpgNf8jzdQU4J+has1ozUeMwbLynZT3FF+JFz9MIuz8RH+6+usGEEq4yjeicTKy3
 8ZHesAqnKMQYdlJwriDhVciebd9c/8orlfxI6YywBPNBiyWp/LiDbEY2mZ32mHKgXp
 BsSS5TyZ5ZWr1EMdPT+cSEY5hkuG1T0UKqL/cRShdYJwFugFdxBDYMCDCnY4qCUQAf
 bg5YqIksB1W6HYdPSpdpPBwi+i0joMTqT+/FxB4vKLKbEHqCBrdMeQ3919MtAsfc+7
 d42QbrLyupyu81WjaJCx7fWJdlN+DvFbhXdK/vgfo8EZJbdQkDF4fCEiYsnhvpKPqJ
 bZZlVQtbDr+SGeQSXGUO+yOYjO2slcH80qkoEVIsg2mEYF2Bo6hCDuKplOGlK2E891
 M5QY3REHmUYA8cykpr6HiUeoByJr4fvierP72jP8QmsvjnihRz6K/1MaRkcau4hbuU
 o5AUlksppLpNzvjLPIaGlgNKKcIcSqC1ONm1l+5gyDSSyNDIiy36weu3iglfHYqrTK
 slOKMQK9zt2TZ3lEkt8Df2pY=
From: Tomas Volf <~@wolfsden.cz>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#78363: Home is read-only in guix shell container
In-Reply-To: <87bjrz2nlg.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Sun, 11 May 2025 17:06:51 +0200")
References: <df56dcfd7fd78f50fe83429db976dc30@HIDDEN>
 <87bjrz2nlg.fsf@HIDDEN>
Date: Sun, 11 May 2025 22:26:12 +0200
Message-ID: <87msbivqqj.fsf@HIDDEN>
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-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78363
Cc: keinflue <keinflue@HIDDEN>, 78363 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> keinflue <keinflue@HIDDEN> writes:
>
>> I am not sure whether this is intended behavior, but it seems weird to
>> me. Inside e.g.
>>
>> guix shell -Cu test coreutils
>>
>> /home/test is mounted read-only and I do not see any way to make it
>> writable without sharing a host directory.
>
> As noted in the =E2=80=98guix pull=E2=80=99 news, you can use =E2=80=98--=
writable-root=E2=80=99.
> Otherwise, everything but the current directory and /tmp is read-only.

Does that make sense though?  You have already made an exception for
/tmp, I would argue that ~ is another candidate for special-casing.

I think people would reasonably expect that touching a file in your own
home should work.  But it does not:

--8<---------------cut here---------------start------------->8---
$ guix shell --no-cwd -C coreutils bash -- sh -c 'touch ~/foo'
touch: cannot touch '/home/user/foo': Read-only file system
--8<---------------cut here---------------end--------------->8---

Some software just fails to start in the container:

--8<---------------cut here---------------start------------->8---
$ guix shell --no-cwd -C deluge -- deluged
20:22:20 [ERROR   ][deluge.common:136 ] Unable to use default config direct=
ory, exiting... ([Errno 30] Read-only file system: '/home/user/.config')
--8<---------------cut here---------------end--------------->8---

Sure, I *can* use --writable-root, but I agree that root being read-only
is a good idea.  Maybe --writable-home, which would default to #t, would
be a good addition?

Tomas

--=20
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.




Information forwarded to bug-guix@HIDDEN:
bug#78363; Package guix. Full text available.

Message received at 78363 <at> debbugs.gnu.org:


Received: (at 78363) by debbugs.gnu.org; 11 May 2025 16:31:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 11 12:31:18 2025
Received: from localhost ([127.0.0.1]:39071 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uE9a9-0001Jj-TF
	for submit <at> debbugs.gnu.org; Sun, 11 May 2025 12:31:18 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51242)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1uE9a4-00014w-Fr
 for 78363 <at> debbugs.gnu.org; Sun, 11 May 2025 12:31:13 -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 <ludo@HIDDEN>)
 id 1uE9Zx-0000s4-7l; Sun, 11 May 2025 12:31:06 -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=onjkCMh6Nq9OedHmX+VX77wyFGM8/umcFBI41XF/m+o=; b=kRrU9xoOm3KIebP/YBSl
 R/c7hOBqXHbXSmsBm60VDddHK6WlKF39erF+2zN5xRPdKVgS2qR3bCOmnM3byBCyqzh30xt6zXU34
 ZkrfLzAjvoXl0LoqhWDjcOj0D2wpnXRaFjmxncMhTdBpdUSCYtWmHBvWXiDEBOf46++pplYOMPIGI
 HzeldARa/Ry7/6i+1vurg3k2+bu4FVDPTiYjkK1xqFaMYjzf+lt8mBeg1aI9In/ccU7GX/HgAi5VD
 P9Z3g87fBDMNFVFybNo80h/3EqhbPjWoS5Yqdxfh9dYrpgSk6T6hGePibocBC0qNG7r5l2WLil+Bv
 p6mfKJwbLX2Yzw==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: keinflue <keinflue@HIDDEN>
Subject: Re: bug#78363: Home is read-only in guix shell container
In-Reply-To: <df56dcfd7fd78f50fe83429db976dc30@HIDDEN>
 (keinflue@HIDDEN's message of "Sat, 10 May 2025 22:59:21 +0000")
References: <df56dcfd7fd78f50fe83429db976dc30@HIDDEN>
User-Agent: mu4e 1.12.9; emacs 29.4
X-URL: https://people.bordeaux.inria.fr/lcourtes/
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
X-Revolutionary-Date: Duodi 22 =?utf-8?Q?Flor=C3=A9al?= an 233 de la
 =?utf-8?Q?R=C3=A9volution=2C?= jour de la Fritillaire
Date: Sun, 11 May 2025 17:06:51 +0200
Message-ID: <87bjrz2nlg.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78363
Cc: 78363 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

keinflue <keinflue@HIDDEN> writes:

> I am not sure whether this is intended behavior, but it seems weird to
> me. Inside e.g.
>
> guix shell -Cu test coreutils
>
> /home/test is mounted read-only and I do not see any way to make it
> writable without sharing a host directory.

As noted in the =E2=80=98guix pull=E2=80=99 news, you can use =E2=80=98--wr=
itable-root=E2=80=99.
Otherwise, everything but the current directory and /tmp is read-only.

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#78363; Package guix. Full text available.

Message received at 78363 <at> debbugs.gnu.org:


Received: (at 78363) by debbugs.gnu.org; 11 May 2025 15:36:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 11 11:36:03 2025
Received: from localhost ([127.0.0.1]:37821 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uE8ig-000281-3D
	for submit <at> debbugs.gnu.org; Sun, 11 May 2025 11:36:03 -0400
Received: from mail.z572.online ([88.99.160.180]:48342)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <zhengjunjie@HIDDEN>)
 id 1uE8ib-00026r-34
 for 78363 <at> debbugs.gnu.org; Sun, 11 May 2025 11:35:59 -0400
Received: from m (<unknown> [61.174.159.83])
 by mail.z572.online (OpenSMTPD) with ESMTPSA id 5377e3e3
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Sun, 11 May 2025 15:42:52 +0000 (UTC)
From: Z572 <zhengjunjie@HIDDEN>
To: Rutherther via Bug reports for GNU Guix <bug-guix@HIDDEN>
Subject: Re: bug#78363: Home is read-only in guix shell container
In-Reply-To: <875xi7gynj.fsf@HIDDEN> (Rutherther via Bug reports for's
 message of "Sun, 11 May 2025 13:44:16 +0200")
References: <df56dcfd7fd78f50fe83429db976dc30@HIDDEN>
 <875xi7gynj.fsf@HIDDEN>
User-Agent: mu4e 1.12.9; emacs 30.0.92
Date: Sun, 11 May 2025 23:35:44 +0800
Message-ID: <87o6vzdusv.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: 78363
Cc: keinflue <keinflue@HIDDEN>, 78363 <at> debbugs.gnu.org,
 Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>,
 Rutherther <rutherther@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Rutherther via Bug reports for GNU Guix <bug-guix@HIDDEN> writes:

>> I am not sure whether this is intended behavior, but it seems weird to=20
>> me. Inside e.g.
>>=20
>> guix shell -Cu test coreutils
>>=20
>> /home/test is mounted read-only and I do not see any way to make it=20
>> writable without sharing a host directory.
>
> Yes this is intentional. The root has been changed to read only
> recently. See the guix news. Use --writable-root to restore the previous =
behavior.

I think this is a bug, just like issues.guix.gnu.org/78272

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmggw9EACgkQO1qpk+Gi
3/DTWA//fOpjBaZYYjnxWjeXWqEdTk6GfL2fKpr8I1T0jHznZwHPUE/e+E8+w1xN
PUMzad2AH4bMQ7Ap2PyXvwlLXZQTtFR/rIUfm0gftfH5xDihHE1ZfjbgfboG1PQC
otPKkKOZ2TQkYhf3izUCglqQl9gghNAhQ6JLxHalq79OjGGtjSQfHrEhnX6p4GjK
Ox3Hv5WKEPKLV/trvsYMo2RHoG709elp4V6I9Vu+ofN53VZed6u467eBgTGCpyu6
MQYcSfK4ZOI4OK2B35GaFcDiKX63IpmVkVSGXGKuBVPYBQ+S7KSe+FVd5WwejHPi
0ZCuSaZ/It7cpUxfwz9aXFf/QKfkKg+RkJn4jTJEGc09sbsJ0HsJlzCFv5oBEO3W
lm99Su89aMIV/kFBrpxXpOeopWsB3xJZyG8ArcvgKEyhg3K7XYOK7On66h1+9ZcI
xr3/vEDIc3lmpbzE5a0s7buEcjdDyadN+ZgLDsyEsnDDz2HzGjHnxxOHKo7N1srj
YaXO7eF4YrN2QFEBeD9ymzsQ2BnlJ54h8bp9jOJf6i2CcnUq+XGWeN6b4NWOV1Rp
kuGPA4DNSnfBoE61S9IYGu0wGnf8aREjFzvqTJPzvNvOS6DcsqYhgW2/UehCDbpf
ReF2I7N4Y+QGbGsCb0NEMGs/R5BvaBbm8YqX/3RWfehu8LqbUVE=
=8/su
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#78363; Package guix. Full text available.

Message received at 78363 <at> debbugs.gnu.org:


Received: (at 78363) by debbugs.gnu.org; 11 May 2025 12:16:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 11 08:16:29 2025
Received: from localhost ([127.0.0.1]:60091 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uE5bX-0005vB-6s
	for submit <at> debbugs.gnu.org; Sun, 11 May 2025 08:16:29 -0400
Received: from mout02.posteo.de ([185.67.36.66]:58549)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <keinflue@HIDDEN>)
 id 1uE5bS-0005tv-Vu
 for 78363 <at> debbugs.gnu.org; Sun, 11 May 2025 08:16:24 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 328EA240101
 for <78363 <at> debbugs.gnu.org>; Sun, 11 May 2025 14:16:15 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1746965775; bh=OUMm5aVoUEQqA2K+BwcdkObykgh8o+seARB51do0Ibw=;
 h=MIME-Version:Date:From:To:Cc:Subject:Message-ID:Content-Type:
 Content-Transfer-Encoding:From;
 b=e07O09t+fZG13e4yG1ipxUMnB+SdytchXhNEAwvPG7Y1KSheliBoMtuD1VSBfg8bK
 6RRRJNcspPAZcJ85Org3ILaiySZLnYhPuLFaQrwLmhUMmhXF5m7j5DIRZGnc++SlGs
 zrpuHxs8SOhr406i3M8FDo0BOaNVHzX1b6mrPkK9U6DSKe+2Mf5ohSCWLi5T+bWN0t
 GQQ7Zx3dzRFjFQ59jzDRWI3eBrRW5homjvk2Y1v3l2oSChtLIwugeLQmGtBdKCstOy
 SYnpa4HUDroI1afHXfd1foGveWPlYH0O5hq9D57hPyTguYGxqKjk9O/7uykuzjN4i0
 0fnQr06eY8/Hw==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4ZwMCf2yPJz9rxK;
 Sun, 11 May 2025 14:16:14 +0200 (CEST)
MIME-Version: 1.0
Date: Sun, 11 May 2025 12:16:14 +0000
From: keinflue <keinflue@HIDDEN>
To: Rutherther <rutherther@HIDDEN>
Subject: Re: Home is read-only in guix shell container
In-Reply-To: <875xi7gynj.fsf@HIDDEN>
References: <875xi7gynj.fsf@HIDDEN>
Message-ID: <8d69ccf510729fbf5a0422d7ea2425d6@HIDDEN>
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78363
Cc: 78363 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Oh ok, if that is intentionally including the home directory, then 
everything is ok. I missed the --writable-root option when reading the 
man page.

This can be closed then.

On 11.05.2025 13:44, Rutherther wrote:
>> I am not sure whether this is intended behavior, but it seems weird to
>> me. Inside e.g.
>> 
>> guix shell -Cu test coreutils
>> 
>> /home/test is mounted read-only and I do not see any way to make it
>> writable without sharing a host directory.
> 
> Yes this is intentional. The root has been changed to read only
> recently. See the guix news. Use --writable-root to restore the
> previous behavior.




Information forwarded to bug-guix@HIDDEN:
bug#78363; Package guix. Full text available.

Message received at 78363 <at> debbugs.gnu.org:


Received: (at 78363) by debbugs.gnu.org; 11 May 2025 11:44:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 11 07:44:30 2025
Received: from localhost ([127.0.0.1]:59554 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uE56b-0003KI-IR
	for submit <at> debbugs.gnu.org; Sun, 11 May 2025 07:44:29 -0400
Received: from ditigal.xyz ([2a01:4f8:1c1b:6a1c::]:42166 helo=mail.ditigal.xyz)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <rutherther@HIDDEN>)
 id 1uE56Y-0003Jb-O9
 for 78363 <at> debbugs.gnu.org; Sun, 11 May 2025 07:44:27 -0400
Received: by cerebrum (OpenSMTPD) with ESMTPSA id b4e4ede7
 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); 
 Sun, 11 May 2025 11:44:18 +0000 (UTC)
From: Rutherther <rutherther@HIDDEN>
To: 78363 <at> debbugs.gnu.org
Subject: Re: Home is read-only in guix shell container
In-Reply-To: <df56dcfd7fd78f50fe83429db976dc30@HIDDEN>
Date: Sun, 11 May 2025 13:44:16 +0200
Message-ID: <875xi7gynj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ditigal.xyz;
 i=@ditigal.xyz; q=dns/txt; s=20240917; t=1746963858; h=from : to : cc
 : subject : in-reply-to : date : message-id : mime-version :
 content-type : from; bh=CiDCzHKSwKBmuVxDAexUJy9wg/2Jt0rYBpW6qL8zlBw=;
 b=K926t+6lcJMgm5X6sICCb6yJ1vbQW+dubndCF6SppoWoERk4XpqJ3wqdUnavbKZ/zwMIK
 cK9AnM/FbLbesRK5y8ysDLiSp72xmgz7KDkMI6VmMIheO/ljEqJFKWcvFbrwDqvECNvvb8R
 QvsxdnCtAFtoguuo5Q1sWvbAe2qzX9c=
X-Spam-Score: 2.5 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  > I am not sure whether this is intended behavior, but it
 seems weird to > me. Inside e.g. > > guix shell -Cu test coreutils > >
 /home/test
 is mounted read-only and I do not see any way to make it > w [...] 
 Content analysis details:   (2.5 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 2.0 PDS_OTHER_BAD_TLD      Untrustworthy TLDs
 [URI: ditigal.xyz (xyz)]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.5 FROM_SUSPICIOUS_NTLD   From abused NTLD
X-Debbugs-Envelope-To: 78363
Cc: keinflue <keinflue@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 2.5 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  > I am not sure whether this is intended behavior, but it
   seems weird to > me. Inside e.g. > > guix shell -Cu test coreutils > > /home/test
    is mounted read-only and I do not see any way to make it > w [...] 
 
 Content analysis details:   (2.5 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  2.0 PDS_OTHER_BAD_TLD      Untrustworthy TLDs
                             [URI: ditigal.xyz (xyz)]
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
  0.5 FROM_SUSPICIOUS_NTLD   From abused NTLD
  1.0 BULK_RE_SUSP_NTLD      Precedence bulk and RE: from a suspicious TLD
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager


> I am not sure whether this is intended behavior, but it seems weird to 
> me. Inside e.g.
> 
> guix shell -Cu test coreutils
> 
> /home/test is mounted read-only and I do not see any way to make it 
> writable without sharing a host directory.

Yes this is intentional. The root has been changed to read only
recently. See the guix news. Use --writable-root to restore the previous behavior.




Information forwarded to bug-guix@HIDDEN:
bug#78363; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 May 2025 22:59:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 10 18:59:39 2025
Received: from localhost ([127.0.0.1]:53075 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uDtAR-0002ca-IL
	for submit <at> debbugs.gnu.org; Sat, 10 May 2025 18:59:39 -0400
Received: from lists.gnu.org ([2001:470:142::17]:43674)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <keinflue@HIDDEN>)
 id 1uDtAM-0002c6-96
 for submit <at> debbugs.gnu.org; Sat, 10 May 2025 18:59:36 -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 <keinflue@HIDDEN>)
 id 1uDtAG-0004cl-Fm
 for bug-guix@HIDDEN; Sat, 10 May 2025 18:59:28 -0400
Received: from mout02.posteo.de ([185.67.36.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <keinflue@HIDDEN>)
 id 1uDtAE-0003pC-09
 for bug-guix@HIDDEN; Sat, 10 May 2025 18:59:28 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id DD1A1240101
 for <bug-guix@HIDDEN>; Sun, 11 May 2025 00:59:21 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1746917961; bh=G6Nni8F4gos7uMPLWOpMjtsvMJFCV68ABAk6SrEb9No=;
 h=MIME-Version:Date:From:To:Subject:Message-ID:Content-Type:
 Content-Transfer-Encoding:From;
 b=B+GCq1vkOK27B88BqCiIvbdYDGbuApO33La1JsQWbGS9NRGrPFLCSPJZPN25okhCH
 oSYhOjOLeHZ0Itp8tM8xEAswX3l2qWbuA6y+4bDM3/j+2+RBlkQKNZiWkv5ZxjlBFq
 FoFE61jM+mNdBgRxPoNs4+O0aVekGJm78s6np8Yj+QYAFPZIYD6C+nxwcRCKFLH77r
 yrgcQCmtxowjOqvMAsJZ90gMPDCPx1toUkK11ijgpmWxRjPVC5ipA3QbYtx+u1OBPh
 iBmY2/iMr1NXvQo/9rRoN7aroXYThi9n/ELs88VvDrJuIh+Od+OtNoFtgmIOUdCVJ9
 RCe5+IGM94q+g==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4Zw1X94CGMz9rxD
 for <bug-guix@HIDDEN>; Sun, 11 May 2025 00:59:21 +0200 (CEST)
MIME-Version: 1.0
Date: Sat, 10 May 2025 22:59:21 +0000
From: keinflue <keinflue@HIDDEN>
To: Bug guix <bug-guix@HIDDEN>
Subject: Home is read-only in guix shell container
Message-ID: <df56dcfd7fd78f50fe83429db976dc30@HIDDEN>
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=185.67.36.66; envelope-from=keinflue@HIDDEN;
 helo=mout02.posteo.de
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

I am not sure whether this is intended behavior, but it seems weird to 
me. Inside e.g.

guix shell -Cu test coreutils

/home/test is mounted read-only and I do not see any way to make it 
writable without sharing a host directory.




Acknowledgement sent to keinflue <keinflue@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#78363; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 18 May 2025 21:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.