From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MFh+EiDjnV/VdwAA0tVLHw (envelope-from ) for ; Sat, 31 Oct 2020 22:20:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yDtmDiDjnV9HIwAA1q6Kng (envelope-from ) for ; Sat, 31 Oct 2020 22:20:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E2C0D940430 for ; Sat, 31 Oct 2020 22:20:15 +0000 (UTC) Received: from localhost ([::1]:52358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYzEM-0008Ii-SS for larch@yhetil.org; Sat, 31 Oct 2020 18:20:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYzEA-0008Gd-Ie for bug-guix@gnu.org; Sat, 31 Oct 2020 18:20:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51528) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYzEA-0004XB-8r for bug-guix@gnu.org; Sat, 31 Oct 2020 18:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYzEA-0006Tc-3W for bug-guix@gnu.org; Sat, 31 Oct 2020 18:20:02 -0400 Subject: bug#44261: running a daemon with userns in relocateble pack breaks Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Sat, 31 Oct 2020 22:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 44261 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Jan Nieuwenhuizen Mail-Followup-To: 44261@debbugs.gnu.org, ludo@gnu.org, janneke@gnu.org Received: via spool by 44261-done@debbugs.gnu.org id=D44261.160418279724874 (code D ref 44261); Sat, 31 Oct 2020 22:20:01 +0000 Received: (at 44261-done) by debbugs.gnu.org; 31 Oct 2020 22:19:57 +0000 Received: from localhost ([127.0.0.1]:34840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYzE5-0006T8-0Q for submit@debbugs.gnu.org; Sat, 31 Oct 2020 18:19:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYzE4-0006Sv-2J for 44261-done@debbugs.gnu.org; Sat, 31 Oct 2020 18:19:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44833) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYzDy-0004UN-RO; Sat, 31 Oct 2020 18:19:50 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=46358 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kYzDy-0006JL-8M; Sat, 31 Oct 2020 18:19:50 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87blgn30w0.fsf@gnu.org> <875z6v2zz5.fsf@gnu.org> <871rhfxutl.fsf@gnu.org> <877dr7s73f.fsf@gnu.org> Date: Sat, 31 Oct 2020 23:19:49 +0100 In-Reply-To: <877dr7s73f.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Fri, 30 Oct 2020 23:05:08 +0100") Message-ID: <87blgirqbe.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 44261-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.51 X-TUID: OcFOcUpIiA6s Hi, Jan Nieuwenhuizen skribis: > Ludovic Court=C3=A8s writes: [...] >> The attached patch adds a test loosely based on yours and a fix for >> that. The fix (for the =E2=80=9Cuserns=E2=80=9D engine) is to make NEW_= ROOT a tmpfs, >> such that upon completion, all we need to do is to unmount it and remove >> it; it lives on as the root file system of child processes. >> >> In the =E2=80=9Cfakechroot=E2=80=9D case, we have to leave NEW_ROOT behi= nd, which is not >> great but acceptable (it=E2=80=99s user-owned, #o700, and it=E2=80=99s u= nder /tmp). The >> test only checks the =E2=80=9Cuserns=E2=80=9D engine. > > Yes, I think this is acceptable. > >> If you confirm that it works for you and looks reasonable, we can apply >> it. > > Yes, this works. The test and also my reproducer now work fine. Thanks for checking, I pushed the fix as bfe82fe2f6e9f34c0774fe2114cdc7e937ba8bd2. Ludo=E2=80=99.