From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QBLUCWhRLmCNQgAA0tVLHw (envelope-from ) for ; Thu, 18 Feb 2021 11:37:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iEpBBWhRLmD1NwAA1q6Kng (envelope-from ) for ; Thu, 18 Feb 2021 11:37:12 +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 6151F1F014 for ; Thu, 18 Feb 2021 12:37:11 +0100 (CET) Received: from localhost ([::1]:48552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lChcM-0000fR-Fq for larch@yhetil.org; Thu, 18 Feb 2021 06:37:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lChcE-0000fI-Ee for bug-guix@gnu.org; Thu, 18 Feb 2021 06:37:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lChcE-0006g8-6M for bug-guix@gnu.org; Thu, 18 Feb 2021 06:37:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lChcE-0005t3-0T for bug-guix@gnu.org; Thu, 18 Feb 2021 06:37:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46292: =?UTF-8?Q?=E2=80=98guix?= environment =?UTF-8?Q?-C=E2=80=99?= fails with Linux 4.19 (Debian) Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 18 Feb 2021 11:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46292 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 46292@debbugs.gnu.org Received: via spool by 46292-submit@debbugs.gnu.org id=B46292.161364817722567 (code B ref 46292); Thu, 18 Feb 2021 11:37:01 +0000 Received: (at 46292) by debbugs.gnu.org; 18 Feb 2021 11:36:17 +0000 Received: from localhost ([127.0.0.1]:46217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lChbU-0005rv-Oy for submit@debbugs.gnu.org; Thu, 18 Feb 2021 06:36:16 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:31388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lChbS-0005ra-FN for 46292@debbugs.gnu.org; Thu, 18 Feb 2021 06:36:15 -0500 X-IronPort-AV: E=Sophos;i="5.81,187,1610406000"; d="scan'208";a="493658226" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Feb 2021 12:36:07 +0100 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87h7ms8658.fsf@inria.fr> Date: Thu, 18 Feb 2021 12:36:07 +0100 In-Reply-To: <87h7ms8658.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Thu, 04 Feb 2021 11:43:47 +0100") Message-ID: <878s7lsj4o.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-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: , Cc: Dimitri DELABROYE Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.36 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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-Migadu-Queue-Id: 6151F1F014 X-Spam-Score: -2.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZeqG1+LVLhFB Ludovic Court=C3=A8s skribis: > The read-only remount comes from =E2=80=98mount-file-system=E2=80=99 in (= gnu build > file-systems): > > ;; For read-only bind mounts, an extra remount is needed, as per > ;; , which still applies to Linux > ;; 4.0. > (when (and (=3D MS_BIND (logand flags MS_BIND)) > (=3D MS_RDONLY (logand flags MS_RDONLY))) > (let ((flags (logior MS_BIND MS_REMOUNT MS_RDONLY))) > (mount source mount-point type flags #f))) > > This recipe has been working well =E2=80=9Cforever=E2=80=9D, although it= =E2=80=99s probably > unnecessary with recent kernels (the LWN article is from 2008). Apparently the extra remount is still necessary, and the =E2=80=98mount=E2= =80=99 command does it for you if you combine =E2=80=98--bind=E2=80=99 with =E2=80=98-o ro= =E2=80=99: --8<---------------cut here---------------start------------->8--- # strace -e mount mount --bind -o ro t m mount("/tmp/t", "/tmp/m", 0xde1930, MS_RDONLY|MS_BIND, NULL) =3D 0 mount("none", "/tmp/m", NULL, MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) =3D 0 +++ exited with 0 +++ # mount --version mount from util-linux 2.35.1 (libmount 2.35.1: btrfs, namespaces, assert, d= ebug) # uname -sr Linux 5.10.10-gnu --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99.