Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75AD3C636D3 for ; Mon, 6 Feb 2023 19:32:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229863AbjBFTcc (ORCPT ); Mon, 6 Feb 2023 14:32:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjBFTca (ORCPT ); Mon, 6 Feb 2023 14:32:30 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A7AE65B6 for ; Mon, 6 Feb 2023 11:32:29 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id e22so7962710ejb.1 for ; Mon, 06 Feb 2023 11:32:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Z/2ldZJ25PDZXwhJ16vO/80H+7cdh/CqtwC42vZviYQ=; b=qKBtRH5Teac8nFUMoHFLxSqtrrpPDPleOTN2RvPuzW4R1MfxwXyhZqo3rhc9BK7xIF /6U5clXoJhabWCaiozvN50Wa0sGeU7LR7F6QQUr9zMYDTbd+oIi/MlguNhPW83y+DZs+ Y3UXLQXDFF6PQODMbDidFoPJ/dsfcnkCznNZQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Z/2ldZJ25PDZXwhJ16vO/80H+7cdh/CqtwC42vZviYQ=; b=TVmS2cA+Oibipe2IZIBINfe4gzlMCouUp4jmRhpdyY340thk+OjQHef07KUxDdjNzo Y5RMBckw4CnGa6QCI27JoJpyblVmidc+h7SzbddrguqpZeWCLPIS5mPcxOnjUyLog6NF Dr6G7Apmuv6Pmr8Ht88dtalWJK+2bVNr3SGsUHbxjDgnffSuqywqrQCys43yYHKzC2mz JrEnQAeZrkyZrJggG+iEGj3HVLGcZInpCNsO08IJwsUqCTakiBAjmpj+SfMxpHRkEJsp 4fB/og8dsQxLe0yPzCcdCHo/i8KqSvSEXMhBw9nbk7v/gsiYDGTa2Z/ik4j7hgya2uIL xJAw== X-Gm-Message-State: AO0yUKU00j9z+0E/XcTK+bUKj/6EfBgF7jEaIJArD5Ps1d5mxySPZ60O 2yVjyb+UElpTfR1xDExVobQIIHxDfXC8BCyHOI5JkA== X-Google-Smtp-Source: AK7set8ET2HF0RB/HxTmY7RtA1k9SmP6VqIvZdhbv3JFGi1V/ewnfNaUCnezESzTlAKclqA4CzyQIOW4xvur0LsJzgs= X-Received: by 2002:a17:906:7242:b0:889:a006:7db5 with SMTP id n2-20020a170906724200b00889a0067db5mr153916ejk.138.1675711947888; Mon, 06 Feb 2023 11:32:27 -0800 (PST) MIME-Version: 1.0 References: <5fb32a1297821040edd8c19ce796fc0540101653.camel@redhat.com> <2ef122849d6f35712b56ffbcc95805672980e185.camel@redhat.com> <8ffa28f5-77f6-6bde-5645-5fb799019bca@linux.alibaba.com> <51d9d1b3-2b2a-9b58-2f7f-f3a56c9e04ac@linux.alibaba.com> <071074ad149b189661681aada453995741f75039.camel@redhat.com> <0d2ef9d6-3b0e-364d-ec2f-c61b19d638e2@linux.alibaba.com> <9c8e76a3-a60a-90a2-f726-46db39bc6558@linux.alibaba.com> <02edb5d6-a232-eed6-0338-26f9a63cfdb6@linux.alibaba.com> <3d4b17795413a696b373553147935bf1560bb8c0.camel@redhat.com> <5fbca304-369d-aeb8-bc60-fdb333ca7a44@linux.alibaba.com> In-Reply-To: From: Miklos Szeredi Date: Mon, 6 Feb 2023 20:32:16 +0100 Message-ID: Subject: Re: [PATCH v3 0/6] Composefs: an opportunistically sharing verified image filesystem To: Amir Goldstein Cc: Alexander Larsson , gscrivan@redhat.com, brauner@kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, david@fromorbit.com, viro@zeniv.linux.org.uk, Vivek Goyal , Josef Bacik , Gao Xiang , Jingbo Xu Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 6 Feb 2023 at 18:16, Amir Goldstein wrote: > it's not overlay{erofs+erofs} > it's overlay{erofs+ext4} (or another fs-verity [1] supporting fs) > the lower layer is a mutable fs with /objects/ dir containing > the blobs. > > The way to ensure the integrity of erofs is to setup dm-verity at > erofs mount time. > > The way to ensure the integrity of the blobs is to store an fs-verity > signature of each blob file in trusted.overlay.verify xattr on the > metacopy and for overlayfs to enable fsverity on the blob file before > allowing access to the lowerdata. > > At least this is my understanding of the security model. So this should work out of the box, right? Thanks, Miklos