mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
pkcs7: Change a pr_warn() to pr_warn_once()
Only display the "PKCS7: Waived invalid module sig (has authattrs)" once. Suggested-by: Lenny Szubowicz <lszubowi@redhat.com> Signed-off-by: David Howells <dhowells@redhat.com> Tested-by: Lenny Szubowicz <lszubowi@redhat.com> cc: Lukas Wunner <lukas@wunner.de> cc: Ignat Korchagin <ignat@cloudflare.com> cc: Jarkko Sakkinen <jarkko@kernel.org> cc: Stephan Mueller <smueller@chronox.de> cc: Eric Biggers <ebiggers@kernel.org> cc: Herbert Xu <herbert@gondor.apana.org.au> cc: keyrings@vger.kernel.org cc: linux-crypto@vger.kernel.org
This commit is contained in:
parent
91db696ade
commit
965e9a2cf2
1 changed files with 1 additions and 1 deletions
|
|
@ -427,7 +427,7 @@ int pkcs7_verify(struct pkcs7_message *pkcs7,
|
|||
if (pkcs7->have_authattrs) {
|
||||
#ifdef CONFIG_PKCS7_WAIVE_AUTHATTRS_REJECTION_FOR_MLDSA
|
||||
if (pkcs7->authattrs_rej_waivable) {
|
||||
pr_warn("Waived invalid module sig (has authattrs)\n");
|
||||
pr_warn_once("Waived invalid module sig (has authattrs)\n");
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue