Clean up whitespace and fixed a bug in the context inheritance error path
[ext4-patch-queue.git] / add-ext4-encryption-Kconfig
blob1e0650f7936e3b8bc760cc366eb9e79b19d9a990
1 ext4 crypto: add ext4 encryption Kconfig
3 From: Theodore Ts'o <tytso@mit.edu>
5 Signed-off-by: Michael Halcrow <mhalcrow@google.com>
6 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 ---
8  fs/ext4/Kconfig | 17 +++++++++++++++++
9  1 file changed, 17 insertions(+)
11 diff --git a/fs/ext4/Kconfig b/fs/ext4/Kconfig
12 index efea5d5..18228c2 100644
13 --- a/fs/ext4/Kconfig
14 +++ b/fs/ext4/Kconfig
15 @@ -64,6 +64,23 @@ config EXT4_FS_SECURITY
16           If you are not using a security module that requires using
17           extended attributes for file security labels, say N.
19 +config EXT4_FS_ENCRYPTION
20 +       bool "Ext4 Encryption"
21 +       depends on EXT4_FS
22 +       select CRYPTO_AES
23 +       select CRYPTO_CBC
24 +       select CRYPTO_ECB
25 +       select CRYPTO_XTS
26 +       select CRYPTO_CTS
27 +       select CRYPTO_SHA256
28 +       select KEYS
29 +       select ENCRYPTED_KEYS
30 +       help
31 +         Enable encryption of ext4 files and directories.  This
32 +         feature is similar to ecryptfs, but it is more memory
33 +         efficient since it avoids caching the encrypted and
34 +         decrypted pages in the page cache.
36  config EXT4_DEBUG
37         bool "EXT4 debugging support"
38         depends on EXT4_FS