Re: [PATCH] ext4: Check for encryption feature before fscrypt_process_policy()

From: Theodore Ts'o
Date: Fri Sep 30 2016 - 01:54:28 EST


On Thu, Sep 22, 2016 at 08:50:54AM +0200, Richard Weinberger wrote:
> ...otherwise an user can enable encryption for certain files even
> when the filesystem is unable to support it.
> Such a case would be a filesystem created by mkfs.ext4's default
> settings, 1KiB block size. Ext4 supports encyption only when block size
> is equal to PAGE_SIZE.
> But this constraint is only checked when the encryption feature flag
> is set.
>
> Signed-off-by: Richard Weinberger <richard@xxxxxx>

Thanks, applied.

- Ted