summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/loader/elf.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/sentry/loader/elf.go b/pkg/sentry/loader/elf.go
index d23dc1096..8579eeee4 100644
--- a/pkg/sentry/loader/elf.go
+++ b/pkg/sentry/loader/elf.go
@@ -408,11 +408,8 @@ func loadParsedELF(ctx context.Context, m *mm.MemoryManager, f *fs.File, info el
path := make([]byte, phdr.Filesz)
_, err := readFull(ctx, f, usermem.BytesIOSequence(path), int64(phdr.Off))
if err != nil {
- ctx.Infof("Error reading PT_INTERP path: %v", err)
// If an interpreter was specified, it should exist.
- if err == io.EOF || err == io.ErrUnexpectedEOF {
- err = syserror.ENOEXEC
- }
+ ctx.Infof("Error reading PT_INTERP path: %v", err)
return loadedELF{}, syserror.ENOEXEC
}