diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-06-18 08:49:51 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-06-18 08:49:51 +0000 |
commit | b7d87eb0fb93cac42b5c9034fb22351743823ed7 (patch) | |
tree | 3398182f3f61577a40926e2e04a78d03d2058bb6 /pkg/sentry/socket/unix | |
parent | e942d4c88fef76dffacb1de8e4d2fa2e0a282926 (diff) | |
parent | 8ab0848c70fcebe377a0e7abdebf371022c96830 (diff) |
Merge 8ab0848c (automated)
Diffstat (limited to 'pkg/sentry/socket/unix')
-rw-r--r-- | pkg/sentry/socket/unix/unix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/socket/unix/unix.go b/pkg/sentry/socket/unix/unix.go index 97db87f3e..5fc43db8c 100644 --- a/pkg/sentry/socket/unix/unix.go +++ b/pkg/sentry/socket/unix/unix.go @@ -64,7 +64,7 @@ type SocketOperations struct { func New(ctx context.Context, endpoint transport.Endpoint, stype linux.SockType) *fs.File { dirent := socket.NewDirent(ctx, unixSocketDevice) defer dirent.DecRef() - return NewWithDirent(ctx, dirent, endpoint, stype, fs.FileFlags{Read: true, Write: true}) + return NewWithDirent(ctx, dirent, endpoint, stype, fs.FileFlags{Read: true, Write: true, NonSeekable: true}) } // NewWithDirent creates a new unix socket using an existing dirent. |