From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eKkAGtJXeWNzHwEAbAwnHQ (envelope-from ) for ; Sat, 19 Nov 2022 23:25:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kFcNGtJXeWP8swAA9RJhRA (envelope-from ) for ; Sat, 19 Nov 2022 23:25:22 +0100 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 1FA9E2D58C for ; Sat, 19 Nov 2022 23:25:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owWGn-00071e-Gi; Sat, 19 Nov 2022 17:25:05 -0500 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 1owWGk-00071Q-Td for bug-guix@gnu.org; Sat, 19 Nov 2022 17:25:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owWGk-00046h-EE for bug-guix@gnu.org; Sat, 19 Nov 2022 17:25:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owWGk-0004dj-9Y for bug-guix@gnu.org; Sat, 19 Nov 2022 17:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59185: Trouble mounting recursive file systems in containers References: In-Reply-To: Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 19 Nov 2022 22:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59185 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 59185@debbugs.gnu.org Received: via spool by 59185-submit@debbugs.gnu.org id=B59185.166889668117799 (code B ref 59185); Sat, 19 Nov 2022 22:25:02 +0000 Received: (at 59185) by debbugs.gnu.org; 19 Nov 2022 22:24:41 +0000 Received: from localhost ([127.0.0.1]:41574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owWGP-0004d1-0M for submit@debbugs.gnu.org; Sat, 19 Nov 2022 17:24:41 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owWGL-0004cp-UZ for 59185@debbugs.gnu.org; Sat, 19 Nov 2022 17:24:40 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1668896673; cv=none; d=zohomail.com; s=zohoarc; b=L1DLmYZDDrnCAk6Z/7KyGYuUYrDzklxOAPDW8mkbBq5ejb0Fq2uiNdTOsga6voMKYE4Co4lHYtMYQfyZjpsiUa1MiiR+ov4lZDobTSD950yQ7QCHoZJTOtYZSKG8fCiEKL4n72Em137/wHyBdDmAMncUUGYW5DbqBS/A7zzJDhI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1668896673; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; bh=YBB4U66VuFdiiidT2MRt+6TNpUYnzHbTVCcZjs669S0=; b=SLvIHqjwm/3H/WxyiBaGAsCH4rsZbS4W2kY0k7bHW6fBK3U30iF9YN0aOLaao/vFFA1BHdFhecwwNaXNwgaQgDDaFHv3t/A4BhkhGiAW6GnSh2QrtnqdjCJ+2M5Ugy2cf661QTz9YeUIBXcqiRltF8RiypRz/9lWlHgAqA4SRvI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1668896673; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=YBB4U66VuFdiiidT2MRt+6TNpUYnzHbTVCcZjs669S0=; b=XJh78bQiufErNDeqx/yWQAHagUt1HDMGAHCHQFstqtl3Mf3AHvCEUJiSPLm0iBFx 4iZ98LhqJaSobCXzIk+OysQUP8tdnVNAMFJom3F9D4X1sXglRcr8Y94WgnLrov00jue gi7GGlvhLp7jR9r1pX5KyAkXEdP28P7HmMnH54gQ= Received: from localhost (145-109-142-46.pool.kielnet.net [46.142.109.145]) by mx.zohomail.com with SMTPS id 1668896672232539.5778058500625; Sat, 19 Nov 2022 14:24:32 -0800 (PST) User-agent: mu4e 1.8.9; emacs 28.1 From: Ricardo Wurmus Date: Sat, 19 Nov 2022 23:23:01 +0100 X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87cz9ishur.fsf@elephly.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-ZohoMailClient: External X-Zoho-Virus-Status: 1 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668896722; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=YBB4U66VuFdiiidT2MRt+6TNpUYnzHbTVCcZjs669S0=; b=FG3BaobZRr13o1P5j4rmvyRmBGoWj3B47Ek6IyEfvbhFOTngTRGGz5u+mJ5LbqTnwspCpy 6/JaT/fizHQ5IEEl6P4oNXdsZBq4dCA2b1HDRtCoxPL1+p8YIFR7P/+HBpyYuDTfANUP8A Zx1NC/mOrvX7Iv4mLaPKjFgFJMvxggCFv2RO+Xf0Ho4sWRxhXflT7vB38Kk9Cwym9+39Tm dBZ55d840VBFjrUQVPq0OvNWTM1K5k2Sc3w1k6q9zb6i0LfjeANVgNbWy4Mx704jkTXkc1 4H6wlZuoJJKHvrLeK/B6WIcHq0smCNPdA9FZGT8bEA37S68ZOqmApdazYs+XjQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1668896722; a=rsa-sha256; cv=fail; b=BUG0cyqUDRi1FS0HZqSImxYvLOMMHaHVO4X4fUD58mvR+nl8zYAbtkjj+FsY9yasxVHHp4 m0JUzvJzJF4wmGb9URW9YlRxbToMBHnOiD7IPUmawdqmBWCzfZ74t952noJbeDeE2gE42g HZZnQoFmGETE6GsY8SamAcN49yi7sIOkfEBtMk17XpZCxMvMpMFEZu0qM3k6y6gLj/fg5A O5rCVSFJicaYTBIgFOyFxpjxf7lKg9erUA+DTX5MCYaK5WMA3LbkgnUVhePjbTqtdjl+bl wXzi4wtoOOQJsuCy+tqu/ltA5MNeBPSwZMTM3Nec61wMEF03kpoSZsxHn2UatQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=XJh78bQi; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.99 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=XJh78bQi; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1FA9E2D58C X-Spam-Score: 0.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: x0tIHvBTBGb8 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Morgan, yes, mounting with MS_REC seems sensible. Not mounting with MS_REC is also responsible for a couple of errors e.g. when trying to map / inside the container (when / has other bind mounts). Here=E2=80=99s a patch that works for me: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-WIP.patch >From 806969ad86038052bf4d0dd2755617beaaa33cb6 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sat, 19 Nov 2022 23:16:52 +0100 Subject: [PATCH] WIP --- gnu/build/file-systems.scm | 2 +- guix/build/syscalls.scm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm index 15b8f73312..66ca22d6ea 100644 --- a/gnu/build/file-systems.scm +++ b/gnu/build/file-systems.scm @@ -1127,7 +1127,7 @@ (define (mount-flags->bit-mask flags) (('read-only rest ...) (logior MS_RDONLY (loop rest))) (('bind-mount rest ...) - (logior MS_BIND (loop rest))) + (logior MS_REC (logior MS_BIND (loop rest)))) (('no-suid rest ...) (logior MS_NOSUID (loop rest))) (('no-dev rest ...) diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm index 61926beb80..2a12567b15 100644 --- a/guix/build/syscalls.scm +++ b/guix/build/syscalls.scm @@ -51,6 +51,7 @@ (define-module (guix build syscalls) MS_RELATIME MS_BIND MS_MOVE + MS_REC MS_SHARED MS_LAZYTIME MNT_FORCE @@ -541,6 +542,7 @@ (define MS_NOATIME 1024) (define MS_NODIRATIME 2048) (define MS_BIND 4096) (define MS_MOVE 8192) +(define MS_REC 16384) (define MS_SHARED 1048576) (define MS_RELATIME 2097152) (define MS_STRICTATIME 16777216) -- 2.36.1 --=-=-= Content-Type: text/plain -- Ricardo --=-=-=--