mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2025-04-19 20:58:31 +09:00
Revert "fsverity: relax build time dependency on CRYPTO_SHA256"
This reverts commit e3a606f2c544b231f6079c8c5fea451e772e1139 because it allows people to create broken configurations that enable FS_VERITY but not SHA-256 support. The commit did allow people to disable the generic SHA-256 implementation when it's not needed. But that at best allowed saving a bit of code. In the real world people are unlikely to intentionally and correctly make such a tweak anyway, as they tend to just be confused by what all the different crypto kconfig options mean. Of course we really need the crypto API to enable the correct implementations automatically, but that's for a later fix. Acked-by: Ard Biesheuvel <ardb@kernel.org> Cc: Herbert Xu <herbert@gondor.apana.org.au> Link: https://lore.kernel.org/r/20250217185105.26751-1-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@google.com>
This commit is contained in:
parent
212df80e01
commit
a19bcde499
@ -4,13 +4,9 @@ config FS_VERITY
|
||||
bool "FS Verity (read-only file-based authenticity protection)"
|
||||
select CRYPTO
|
||||
select CRYPTO_HASH_INFO
|
||||
# SHA-256 is implied as it's intended to be the default hash algorithm.
|
||||
# SHA-256 is selected as it's intended to be the default hash algorithm.
|
||||
# To avoid bloat, other wanted algorithms must be selected explicitly.
|
||||
# Note that CRYPTO_SHA256 denotes the generic C implementation, but
|
||||
# some architectures provided optimized implementations of the same
|
||||
# algorithm that may be used instead. In this case, CRYPTO_SHA256 may
|
||||
# be omitted even if SHA-256 is being used.
|
||||
imply CRYPTO_SHA256
|
||||
select CRYPTO_SHA256
|
||||
help
|
||||
This option enables fs-verity. fs-verity is the dm-verity
|
||||
mechanism implemented at the file level. On supported
|
||||
|
Loading…
x
Reference in New Issue
Block a user