All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Biggers <ebiggers@kernel.org>
To: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Cc: tytso@mit.edu, linux-fscrypt@vger.kernel.org
Subject: Re: [RFC PATCH 1/2] fscrypt: Remove filesystem specific build config option
Date: Wed, 31 Oct 2018 16:43:20 -0700	[thread overview]
Message-ID: <20181031234319.GA202657@gmail.com> (raw)
In-Reply-To: <20181031050005.17770-1-chandan@linux.vnet.ibm.com>

Hi Chandan, a couple questions:

On Wed, Oct 31, 2018 at 10:30:04AM +0530, Chandan Rajendra wrote:
> As a first step to avoid copy-pasting common code across filesystems
> which implement fscrypt, this commit removes filesystem specific build
> config option (e.g. CONFIG_EXT4_FS_ENCRYPTION) and replaces it with a
> build option (i.e. CONFIG_FS_ENCRYPTION) whose value affects all the
> filesystems making use of fscrypt.
> 
> Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>

Can you be more explicit about the goal here?  It's mostly about implementing
->readpages() when the filesystem may support both fscrypt and fs-verity, right?

> diff --git a/fs/crypto/Kconfig b/fs/crypto/Kconfig
> index 02b7d91..6e9ae56 100644
> --- a/fs/crypto/Kconfig
> +++ b/fs/crypto/Kconfig
> @@ -1,5 +1,5 @@
>  config FS_ENCRYPTION
> -	tristate "FS Encryption (Per-file encryption)"
> +	bool "FS Encryption (Per-file encryption)"
>  	select CRYPTO
>  	select CRYPTO_AES
>  	select CRYPTO_CBC

Is it possible to keep this as a module, rather than requiring that fs/crypto/
always be built-in?  Making this a 'bool' will require all the selected crypto
algorithms to be built-in too.

> -	if (ext4_encrypted_inode(inode)) {
> +	if (IS_ENCRYPTED(inode)) {

I suggest doing the replacements of ext4_encrypted_inode() with IS_ENCRYPTED()
as a standalone patch, so it's easier to review.

Also I suggest sending this patch to the ext4 and f2fs mailing lists too.

Thanks!

- Eric

  parent reply	other threads:[~2018-11-01  8:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-31  5:00 [RFC PATCH 1/2] fscrypt: Remove filesystem specific build config option Chandan Rajendra
2018-10-31  5:00 ` [RFC PATCH 2/2] fsverity: " Chandan Rajendra
2018-10-31 23:43 ` Eric Biggers [this message]
2018-11-01 13:42   ` [RFC PATCH 1/2] fscrypt: " Chandan Rajendra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181031234319.GA202657@gmail.com \
    --to=ebiggers@kernel.org \
    --cc=chandan@linux.vnet.ibm.com \
    --cc=linux-fscrypt@vger.kernel.org \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.