From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id yBZtO9Q6OmbshQEAqHPOHw:P1 (envelope-from ) for ; Tue, 07 May 2024 16:29:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yBZtO9Q6OmbshQEAqHPOHw (envelope-from ) for ; Tue, 07 May 2024 16:29:41 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=J51VBWlv; 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"; 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=1715092180; 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: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=ChJYOQiz42WZ07O3v28oyvC23SFepRFCs60EH3uouKg=; b=FYgUsYDcvQHp65xwxnTC7GBErmaSCmS+37naf3/6iMKCRLHOIKeD7ZQAIQ55M/2nJU/dzE VBrOX/7HaVdmd1+m4fM4wVi1uP4Qu5oWPGfmvs2ppaljnPBq69rQk902IgA63CjNyxqC44 sshX+LPyou7MecyoB+Nei87RYVL/17SvBeVfqV/G9Muw/TkUrFQdZ2hlUxMInPHrSCOJ6v 7TpCSnJxt8kRYHU5f6PzuH/aryTF3BFc+wDbkPuHdTuIUhDfAL3dYullXfFlCTAPbHyHW6 A/sxJHke1v6bcpI3jrqtZ8Xq4BUdyMs4K+IJJWHRjw/VVeKZNSoz9KqrtjhAxA== 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=J51VBWlv; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715092180; a=rsa-sha256; cv=none; b=utWcieXEchXsF3NGsfQV5sNC0/hv62ZLTZzNQzbhcCwBcctSdO1EkJcgzsZ6eFHBpxeIH2 hSbhO+FxZKRciWyCCPDN0fedEkE0rMSda0v+1Dv8YCRP6X7hOhk2dFm9yRCA08MECFomrp xadRvi7mzgFXyJNcLzA/ZKoYpMY2KeGvKHMXxyEj5KWMnoNRI3cPVdHZwH/iol6NJvv81v UO+TDtirb8311PORNCDcWy/gXl1OxfowR4Z95P3k5onKEdwKBgwkSBKCsl1IgVO5kaQEHy 9JuhEafBC/KCZKfKd2qpUT9pvMHL4FDqNl2bEuh+AMEuF8lLbKs7Vdpyt11vuQ== 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 CA8F820E73 for ; Tue, 7 May 2024 16:29:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4Lp5-0001XT-9O; Tue, 07 May 2024 10:29:39 -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 1s4Lp3-0001XH-VZ for guix-patches@gnu.org; Tue, 07 May 2024 10:29:38 -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 1s4Lp3-0000Xk-Lk for guix-patches@gnu.org; Tue, 07 May 2024 10:29:37 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s4LpS-0008AS-Er for guix-patches@gnu.org; Tue, 07 May 2024 10:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70494] [PATCH 02/23] gnu: linux-container: Make it more suitable for derivation-building. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 07 May 2024 14:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70494 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Christopher Baines Cc: 70494@debbugs.gnu.org Received: via spool by 70494-submit@debbugs.gnu.org id=B70494.171509216231368 (code B ref 70494); Tue, 07 May 2024 14:30:02 +0000 Received: (at 70494) by debbugs.gnu.org; 7 May 2024 14:29:22 +0000 Received: from localhost ([127.0.0.1]:42991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4Loo-00089s-6d for submit@debbugs.gnu.org; Tue, 07 May 2024 10:29:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4Lom-00089m-9B for 70494@debbugs.gnu.org; Tue, 07 May 2024 10:29:21 -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 1s4LoH-0000Rk-Mq; Tue, 07 May 2024 10:28:49 -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=ChJYOQiz42WZ07O3v28oyvC23SFepRFCs60EH3uouKg=; b=J51VBWlvtydL+Cb1chrY t3m6FYudlhbMiYxoZWmb2+UPb2gm1eBuxszwehq7QtitW/LmN339YiCe3YxYw9i/PaXOclb83mR83 QkthmliB56Z8GZ/+9XAS5wjp7kvpn7WBXrRrP90xRRFsOrqZ2sAZcVZQBOAElIkh56pWul42Hym8s hi01IVeKytC3lU4hkhF3zVIGKmM1M8spFhAJpJCGdRsC6STiryJWzDLnkS3m8WV41Pb4Cfd5uxdcf gRP7BPkKgtSKNtx1EZ8v+w+qVSCN4D5a4VQ8hw5rgZIvK0VwY+JnRrJqd2aDQSNBjf87w+0F82L8w nTLlcf4dqZu8Dg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <01702a23fe5bb7ae3b5d800b69e8d6bc59c488f2.1713692561.git.mail@cbaines.net> (Christopher Baines's message of "Sun, 21 Apr 2024 10:42:20 +0100") References: <87bk632h36.fsf@cbaines.net> <01702a23fe5bb7ae3b5d800b69e8d6bc59c488f2.1713692561.git.mail@cbaines.net> Date: Tue, 07 May 2024 16:28:46 +0200 Message-ID: <87msp166ht.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -7.09 X-Migadu-Queue-Id: CA8F820E73 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -7.09 X-TUID: 0Ulk4MVg1S0p Christopher Baines skribis: > From: Caleb Ristvedt > > * gnu/build/linux-container.scm (mount-file-systems): First remount all > filesystems in the current mount namespace as private (by mounting / with > MS_PRIVATE and MS_REC), so that the set of mounts cannot increase except from > within the container. Also, the tmpfs mounted over the chroot directory now > inherits the chroot directory's permissions (p11-kit, for example, has a test > that assumes that the root directory is not writable for the current user, and > tmpfs is by default 1777 when created). > * guix/build/syscalls.scm (MS_PRIVATE, MS_REC): new variables. LGTM (though the log seems to describe more than the changes?).