From 24d349f491def12f88a8c861bedeed539954864a Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Mon, 25 Jan 2021 14:22:01 +0000 Subject: [PATCH] verity: improve crypt_activate_by_signed_key debug log Check if a signature is actually available before logging that the volume is being activated with a signed key. --- lib/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/setup.c b/lib/setup.c index 3b69876d..6267720a 100644 --- a/lib/setup.c +++ b/lib/setup.c @@ -4431,7 +4431,7 @@ int crypt_activate_by_signed_key(struct crypt_device *cd, return -EINVAL; } - log_dbg(cd, "%s volume %s by signed key.", name ? "Activating" : "Checking", name ?: ""); + log_dbg(cd, "%s volume %s by %skey.", name ? "Activating" : "Checking", name ?: "", signature ? "signed " : ""); if (cd->u.verity.hdr.flags & CRYPT_VERITY_ROOT_HASH_SIGNATURE && !signature) { log_err(cd, _("Root hash signature required."));