[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-unionfs
Subject: Re: [PATCH v2 4/5] fscrypt: only set dentry_operations on ciphertext dentries
From: "Theodore Ts'o" <tytso () mit ! edu>
Date: 2019-04-17 14:07:01
Message-ID: 20190417140701.GD4686 () mit ! edu
[Download RAW message or body]
On Wed, Mar 20, 2019 at 11:39:12AM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
>
> Plaintext dentries are always valid, so only set fscrypt_d_ops on
> ciphertext dentries.
>
> Besides marginally improved performance, this allows overlayfs to use an
> fscrypt-encrypted upperdir, provided that all the following are true:
>
> (1) The fscrypt encryption key is placed in the keyring before
> mounting overlayfs, and remains while the overlayfs is mounted.
>
> (2) The overlayfs workdir uses the same encryption policy.
>
> (3) No dentries for the ciphertext names of subdirectories have been
> created in the upperdir or workdir yet. (Since otherwise
> d_splice_alias() will reuse the old dentry with ->d_op set.)
>
> One potential use case is using an ephemeral encryption key to encrypt
> all files created or changed by a container, so that they can be
> securely erased ("crypto-shredded") after the container stops.
>
> Signed-off-by: Eric Biggers <ebiggers@google.com>
Looks good, applied.
- Ted
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic