diff options
| -rw-r--r-- | pkg/image/fsck.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/image/fsck.go b/pkg/image/fsck.go index 4c619b828..e749871f9 100644 --- a/pkg/image/fsck.go +++ b/pkg/image/fsck.go @@ -35,6 +35,8 @@ func Fsck(r io.Reader, fsckCmd string) ([]byte, bool, error) { return nil, false, fmt.Errorf("failed to close temporary file: %w", err) } + osutil.SandboxChown(tempFile.Name()) + // And run the provided fsck command on it. fsck := append(strings.Fields(fsckCmd), tempFile.Name()) cmd := osutil.Command(fsck[0], fsck[1:]...) |
