Skip to content

Commit ee26f72

Browse files
committed
client: Make ImageFileRequest require a ReadWriteSeeker
This is a small Go API break which is needed to address a security issue where we need the ability to re-hash the final image files. This is part of a fix for CVE-2026-33542. Reported-by: wl2018 Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
1 parent 82a969c commit ee26f72

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

client/interfaces.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,10 +502,10 @@ type ImageCreateArgs struct {
502502
// The ImageFileRequest struct is used for an image download request.
503503
type ImageFileRequest struct {
504504
// Writer for the metadata file
505-
MetaFile io.WriteSeeker
505+
MetaFile io.ReadWriteSeeker
506506

507507
// Writer for the rootfs file
508-
RootfsFile io.WriteSeeker
508+
RootfsFile io.ReadWriteSeeker
509509

510510
// Progress handler (called whenever some progress is made)
511511
ProgressHandler func(progress ioprogress.ProgressData)

0 commit comments

Comments
 (0)