[PATCH] backports: add missed dependency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



verification/pkcs7_verify.c uses the hash_algo_name array that
is available in kernel exported names only if CRYPTO_HASH_INFO config
option enabled. Add this dependency to avoid getting late error
on loading compat.ko module [1].

[1]
---------------------------------
[   12.645547] compat: Unknown symbol hash_algo_name (err 0)
---------------------------------

Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@xxxxxxxxxxx>
---

 backport/compat/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backport/compat/Kconfig b/backport/compat/Kconfig
index 3af729a3..c9b311f5 100644
--- a/backport/compat/Kconfig
+++ b/backport/compat/Kconfig
@@ -149,7 +149,7 @@ config BPAUTO_SYSTEM_DATA_VERIFICATION
 config BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION
 	bool
 	default y if BPAUTO_SYSTEM_DATA_VERIFICATION
-	depends on KERNEL_4_7 || !SYSTEM_DATA_VERIFICATION
+	depends on (KERNEL_4_7 || !SYSTEM_DATA_VERIFICATION) && CRYPTO_HASH_INFO
 	select BPAUTO_ASN1_DECODER
 	select BPAUTO_PUBLIC_KEY
 	select BPAUTO_PKCS7
-- 
2.25.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux