summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/pipe
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-06-18 08:49:51 +0000
committergVisor bot <gvisor-bot@google.com>2019-06-18 08:49:51 +0000
commitb7d87eb0fb93cac42b5c9034fb22351743823ed7 (patch)
tree3398182f3f61577a40926e2e04a78d03d2058bb6 /pkg/sentry/kernel/pipe
parente942d4c88fef76dffacb1de8e4d2fa2e0a282926 (diff)
parent8ab0848c70fcebe377a0e7abdebf371022c96830 (diff)
Merge 8ab0848c (automated)
Diffstat (limited to 'pkg/sentry/kernel/pipe')
-rw-r--r--pkg/sentry/kernel/pipe/pipe.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/pipe/pipe.go b/pkg/sentry/kernel/pipe/pipe.go
index 755326d59..8e49070a9 100644
--- a/pkg/sentry/kernel/pipe/pipe.go
+++ b/pkg/sentry/kernel/pipe/pipe.go
@@ -162,6 +162,7 @@ func NewConnectedPipe(ctx context.Context, sizeBytes, atomicIOBytes int64) (*fs.
//
// Precondition: at least one of flags.Read or flags.Write must be set.
func (p *Pipe) Open(ctx context.Context, d *fs.Dirent, flags fs.FileFlags) *fs.File {
+ flags.NonSeekable = true
switch {
case flags.Read && flags.Write:
p.rOpen()