summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket/netlink
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/socket/netlink
parente942d4c88fef76dffacb1de8e4d2fa2e0a282926 (diff)
parent8ab0848c70fcebe377a0e7abdebf371022c96830 (diff)
Merge 8ab0848c (automated)
Diffstat (limited to 'pkg/sentry/socket/netlink')
-rw-r--r--pkg/sentry/socket/netlink/provider.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/socket/netlink/provider.go b/pkg/sentry/socket/netlink/provider.go
index 31d2ca494..689cad997 100644
--- a/pkg/sentry/socket/netlink/provider.go
+++ b/pkg/sentry/socket/netlink/provider.go
@@ -89,7 +89,7 @@ func (*socketProvider) Socket(t *kernel.Task, stype linux.SockType, protocol int
d := socket.NewDirent(t, netlinkSocketDevice)
defer d.DecRef()
- return fs.NewFile(t, d, fs.FileFlags{Read: true, Write: true}, s), nil
+ return fs.NewFile(t, d, fs.FileFlags{Read: true, Write: true, NonSeekable: true}, s), nil
}
// Pair implements socket.Provider.Pair by returning an error.