Skip to content

Commit

Permalink
ext4 crypto: do not select from EXT4_FS_ENCRYPTION
Browse files Browse the repository at this point in the history
This patch adds a tristate EXT4_ENCRYPTION to do the selections
for EXT4_FS_ENCRYPTION because selecting from a bool causes all
the selected options to be built-in, even if EXT4 itself is a
module.

Signed-off-by: Herbert Xu <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
  • Loading branch information
herbertx authored and tytso committed May 2, 2015
1 parent a44cd7a commit fb63e54
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions fs/ext4/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ config EXT4_FS_SECURITY
If you are not using a security module that requires using
extended attributes for file security labels, say N.

config EXT4_FS_ENCRYPTION
bool "Ext4 Encryption"
config EXT4_ENCRYPTION
tristate "Ext4 Encryption"
depends on EXT4_FS
select CRYPTO_AES
select CRYPTO_CBC
Expand All @@ -81,6 +81,11 @@ config EXT4_FS_ENCRYPTION
efficient since it avoids caching the encrypted and
decrypted pages in the page cache.

config EXT4_FS_ENCRYPTION
bool
default y
depends on EXT4_ENCRYPTION

config EXT4_DEBUG
bool "EXT4 debugging support"
depends on EXT4_FS
Expand Down

0 comments on commit fb63e54

Please sign in to comment.