Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3102462imc; Wed, 13 Mar 2019 08:54:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVqiR8lLQ+8M/eU3oLXdxCzYi7iGm/4AEgpAXirixQnl6Mh0Wh8C4b+i0m/B7bAJL1mqkr X-Received: by 2002:a17:902:ba92:: with SMTP id k18mr21751573pls.112.1552492440696; Wed, 13 Mar 2019 08:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552492440; cv=none; d=google.com; s=arc-20160816; b=yY+BijIeO8gBcrPerhHV9VXS2sxEDuSYnkqjMcE4BGBz6qsaJgbYAS9238hQeIO9Gv VOiQ2DDuYD14wIacsi38ZNAgzXZOWK2kd+79ots4lQ204Zy3aFQcGNWutfoA+sNlWjk9 N6WSjYO7/b1d+F2Q3LL8Y1M4lwzGx3F4NJ2yNRos8w+TXbwRS9GE9vOyWze0zSylnW/m KawCJdS8fMaysPoPF+tBwtpsliGholGUs4B5Fr4XbSaYeNnCnq4Hlc3W5ByU/YRkvTd+ V5mY9bNAbmTYY9sD0xjEd7xdJiSec5639Rz+Xod3f+UVmdmSPhjVQHtosAK5MX8eMaJP NmOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oXCEw5krYdoQ38F0LyVVvPxahB8AbAyHv3AfmPz/NfU=; b=tDkHTzlFoCtBb2iJNIhb3r1kZNIUuoKeqeagj8oQgq8Vom8t5oggFKxyO2KWALwJTF wF7YoLd565iNA14VrRlKEr/1nWY70SUypaZTiYbiBM2oz/Yqjy9pY8VFAUgbZnQZtwc+ v1dzL/l8ZDKbpap7JVpifDeAhIgipfYaGz6wMxUYbwQ868vy3dwdHym81v7PvEoPYV0C LMKEqUsn738BCNv+nOY36+jt1qPB4A0gnJrGbYhYZVWYFJwVnKukcAVoBC7Ybi24qp1G LLqBOpSQJxPDhy4jlokhRGh6OuCxvZLIbnUhrq/H0YvzEWaJSIcvfqcaIWLxHzPKURu+ aoMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ePRMxzz0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r9si9708276pgp.193.2019.03.13.08.53.45; Wed, 13 Mar 2019 08:54:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ePRMxzz0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726883AbfCMPvt (ORCPT + 99 others); Wed, 13 Mar 2019 11:51:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:38840 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbfCMPvs (ORCPT ); Wed, 13 Mar 2019 11:51:48 -0400 Received: from sol.localdomain (c-107-3-167-184.hsd1.ca.comcast.net [107.3.167.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1BDA6206DF; Wed, 13 Mar 2019 15:51:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552492307; bh=V/NJfk36W27qYIw42y564bE6MrQVbeuMo2qT6sB3VWU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ePRMxzz0w3gIa8Vi+LEOlibLhY5aostdvMPfYzIrS3bCfIWpYNuJC/e6yrIp3td3U xJXgKhoAkixW1dfy9fNvN7II7Ao5VV+pug9q5CXsjoRZ0auBBHqznIpnJqAGCei/hB fI0Pr9kxEbYXrX/WoNJeoa4+ENPbSJ9MlWRc1yjE= Date: Wed, 13 Mar 2019 08:51:45 -0700 From: Eric Biggers To: James Bottomley Cc: Theodore Ts'o , Amir Goldstein , Richard Weinberger , Miklos Szeredi , linux-fsdevel , linux-fscrypt@vger.kernel.org, overlayfs , linux-kernel , Paul Lawrence Subject: Re: overlayfs vs. fscrypt Message-ID: <20190313155144.GC703@sol.localdomain> References: <4603533.ZIfxmiEf7K@blindfold> <1854703.ve7plDhYWt@blindfold> <4066872.KGdO14EQMx@blindfold> <20190313151633.GA672@mit.edu> <1552491394.3022.8.camel@HansenPartnership.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1552491394.3022.8.camel@HansenPartnership.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi James, On Wed, Mar 13, 2019 at 08:36:34AM -0700, James Bottomley wrote: > On Wed, 2019-03-13 at 11:16 -0400, Theodore Ts'o wrote: > > So before we talk about how to make things work from a technical > > perspective, we should consider what the use case happens to be, and > > what are the security requirements. *Why* are we trying to use the > > combination of overlayfs and fscrypt, and what are the security > > properties we are trying to provide to someone who is relying on this > > combination? > > I can give one: encrypted containers: > > https://github.com/opencontainers/image-spec/issues/747 > > The current proposal imagines that the key would be delivered to the > physical node and the physical node containerd would decrypt all the > layers before handing them off to to the kubelet. However, one could > imagine a slightly more secure use case where the layers were > constructed as an encrypted filesystem tar and so the key would go into > the kernel and the layers would be constructed with encryption in place > using fscrypt. > > Most of the desired security properties are in image at rest but one > can imagine that the running image wants some protection against > containment breaches by other tenants and using fscrypt could provide > that. > What do you mean by "containment breaches by other tenants"? Note that while the key is added, fscrypt doesn't prevent access to the encrypted files. fscrypt is orthogonal to OS-level access control (UNIX mode bits, ACLs, SELinux, etc.), which can and should be used alongside fscrypt. fscrypt is a storage encryption mechanism, not an OS-level access control mechanism. - Eric