]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect-image: Log if verity signature partition is too large
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 6 Jun 2023 14:54:24 +0000 (16:54 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 20 Jun 2023 13:22:47 +0000 (15:22 +0200)
src/shared/dissect-image.c

index cf432e2177ae5f24203c2f08b4a60c17d988cd3b..a1e4d333c88c061e67e88a006284ba92abf57c3f 100644 (file)
@@ -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)