From: Daan De Meyer Date: Tue, 6 Jun 2023 14:54:24 +0000 (+0200) Subject: dissect-image: Log if verity signature partition is too large X-Git-Tag: v254-rc1~155^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d31f8e0cb81e2fc721d991df911b50d1660b4bf7;p=thirdparty%2Fsystemd.git dissect-image: Log if verity signature partition is too large --- diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index cf432e2177a..a1e4d333c88 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)