summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/dev/null.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/fs/dev/null.go')
-rw-r--r--pkg/sentry/fs/dev/null.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/fs/dev/null.go b/pkg/sentry/fs/dev/null.go
index 18dd08515..4404b97ef 100644
--- a/pkg/sentry/fs/dev/null.go
+++ b/pkg/sentry/fs/dev/null.go
@@ -97,6 +97,7 @@ func newZeroDevice(ctx context.Context, owner fs.FileOwner, mode linux.FileMode)
func (zd *zeroDevice) GetFile(ctx context.Context, dirent *fs.Dirent, flags fs.FileFlags) (*fs.File, error) {
flags.Pread = true
flags.Pwrite = true
+ flags.NonSeekable = true
return fs.NewFile(ctx, dirent, flags, &zeroFileOperations{}), nil
}