From d31f8e0cb81e2fc721d991df911b50d1660b4bf7 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 6 Jun 2023 16:54:24 +0200 Subject: [PATCH] dissect-image: Log if verity signature partition is too large --- src/shared/dissect-image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index cf432e2177..a1e4d333c8 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -3196,7 +3196,7 @@ int dissected_image_load_verity_sig_partition( return -EINVAL; if (p->size > 4*1024*1024) /* Signature data cannot possible be larger than 4M, refuse that */ - return -EFBIG; + return log_debug_errno(SYNTHETIC_ERRNO(EFBIG), "Verity signature partition is larger than 4M, refusing."); buf = new(char, p->size+1); if (!buf)