From mboxrd@z Thu Jan 1 00:00:00 1970 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 AF7E2C6FA82 for ; Thu, 8 Sep 2022 13:44:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230135AbiIHNoF (ORCPT ); Thu, 8 Sep 2022 09:44:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230083AbiIHNoD (ORCPT ); Thu, 8 Sep 2022 09:44:03 -0400 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 743FDE72D2 for ; Thu, 8 Sep 2022 06:44:02 -0700 (PDT) Received: by mail-qk1-x732.google.com with SMTP id x3so535703qkn.5 for ; Thu, 08 Sep 2022 06:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=5mdmjkjLC5eua+YE1s8vN2xogR3eHSAey1ZvclOUDOg=; b=3wpyhtuj4lMCT1dlwB69Z0It2aQl+IUfqP3waROexHHmNJ36St8Mh2wC+Kxiyhfx9X n05IPvJMGAIPrKkOHWYFoOBk30XSsCN1hGsUlC64ru+xGd4fn1PYPAntsFICWd6bKMUo QaZQoCG5vQ11zbhLnYERj6zP3sBnMU5nkdQ/GLeROtbaHfbW+NTALnjYOsa0yqtz7q9U qUC8zn8ZTP0UOW5oXXcYLhNLp/1oU4hesV8/fRyr2PD9KQ+5QBVqlX81aojyOtAynTG4 Xuz8+dMNcXViG3WHzr+ZvpoTAIUNS8jC5NZxIHN67l6GAgbwhyco0Xi+WZkS0tX9qmgJ 1HRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=5mdmjkjLC5eua+YE1s8vN2xogR3eHSAey1ZvclOUDOg=; b=uvW3qvEFAnJ2XxsSIAtlb/Fm/iXDFAKDmB/t73GNJv3h7gR8vRN1EIpCrBgyewBlSh vSZh2IT0ad4lleukZCW/aZA8JZPLf0FnYsGJKfpxWVB+oY0D915EjkOuat+owlVS5uMZ nl9gka8AQC4iLB1zCuJS8Ga3K1GVz33tsDFFuWHbcO8ojy110sWWxA6dJtJlXULxF2MH rjw8RgHsJu35hVw6ZXI+0NgUO9ldxbn4z4mxJBfGMnCpAPp61LqPXgn2Ka38NBksidwn 1zfil1jdJpcEA6wxSkjta5HtAFUuqqzXeScP4wOrfgQ3wWpuYuWCw68rIwwY7it9mmXN WUOQ== X-Gm-Message-State: ACgBeo2ZBCveG3wRjq51I32uLbN9dwCrPfp0kAXqw6CGpLBjqch6oT4S emXSdHkGzSmlBRzq59JodYvDLg== X-Google-Smtp-Source: AA6agR6vXc46JYpyyb+Vdt7i3ejJviljHg3DIaysM6Fyt/t7VbxWdfhOIpPKoE+1IxCUaI5puIK77w== X-Received: by 2002:a05:620a:29d1:b0:6bb:6b8a:e767 with SMTP id s17-20020a05620a29d100b006bb6b8ae767mr6017231qkp.767.1662644641403; Thu, 08 Sep 2022 06:44:01 -0700 (PDT) Received: from localhost (cpe-174-109-172-136.nc.res.rr.com. [174.109.172.136]) by smtp.gmail.com with ESMTPSA id a26-20020a05620a103a00b006aee5df383csm15770748qkk.134.2022.09.08.06.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Sep 2022 06:44:00 -0700 (PDT) Date: Thu, 8 Sep 2022 09:43:59 -0400 From: Josef Bacik To: Sweet Tea Dorminy Cc: "Theodore Y. Ts'o" , Jaegeuk Kim , Eric Biggers , Chris Mason , David Sterba , linux-fscrypt@vger.kernel.org, linux-btrfs@vger.kernel.org, kernel-team@fb.com, Omar Sandoval Subject: Re: [PATCH v2 02/20] fscrypt: add flag allowing partially-encrypted directories Message-ID: References: <5e762e300535cbb9f04b25a97e1d13fd082f5b0e.1662420176.git.sweettea-kernel@dorminy.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5e762e300535cbb9f04b25a97e1d13fd082f5b0e.1662420176.git.sweettea-kernel@dorminy.me> Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Mon, Sep 05, 2022 at 08:35:17PM -0400, Sweet Tea Dorminy wrote: > From: Omar Sandoval > > Creating several new subvolumes out of snapshots of another subvolume, > each for a different VM's storage, is a important usecase for btrfs. We > would like to give each VM a unique encryption key to use for new writes > to its subvolume, so that secure deletion of the VM's data is as simple > as securely deleting the key; to avoid needing multiple keys in each VM, > we envision the initial subvolume being unencrypted. However, this means > that the snapshot's directories would have a mix of encrypted and > unencrypted files. During lookup with a key, both unencrypted and > encrypted forms of the desired name must be queried. > > To allow this, add another FS_CFLG to allow filesystems to opt into > partially encrypted directories. > > Signed-off-by: Omar Sandoval > Signed-off-by: Sweet Tea Dorminy Reviewed-by: Josef Bacik Thanks, Josef