[PATCH] crypto: pkcs7: export verify_pkcs7_message_sig() as EXPORT_SYMBOL_GPL

Paul Moore paul at paul-moore.com
Sat May 23 15:57:51 UTC 2026


For the sake of consistency with pther PKCS7 functions, export
verify_pkcs7_message_sig() as EXPORT_SYMBOL_GPL.

Cc: James Bottomley <James.Bottomley at HansenPartnership.com>
Fixes: 188cfb7ec81c ("crypto: pkcs7: add flag for validated trust on a signed info block")
Signed-off-by: Paul Moore <paul at paul-moore.com>
---
 certs/system_keyring.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/certs/system_keyring.c b/certs/system_keyring.c
index 9bda49295bd0..e1268d0cffff 100644
--- a/certs/system_keyring.c
+++ b/certs/system_keyring.c
@@ -380,7 +380,7 @@ int verify_pkcs7_message_sig(const void *data, size_t len,
 	pr_devel("<==%s() = %d\n", __func__, ret);
 	return ret;
 }
-EXPORT_SYMBOL(verify_pkcs7_message_sig);
+EXPORT_SYMBOL_GPL(verify_pkcs7_message_sig);
 
 /**
  * verify_pkcs7_signature - Verify a PKCS#7-based signature on system data.
-- 
2.54.0




More information about the Linux-security-module-archive mailing list