summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/task.go
diff options
context:
space:
mode:
authorIan Gudger <igudger@google.com>2018-10-15 17:47:24 -0700
committerShentubot <shentubot@google.com>2018-10-15 17:48:11 -0700
commit167f2401c4abb1ebda1f4536a04d9854e9008e0b (patch)
treedc9c7d33f0635039bf3ba45e912fb693f3a99812 /pkg/sentry/kernel/task.go
parentecd94ea7a693d49a0edce8607241a8e2ac22bfe0 (diff)
Merge host.endpoint into host.ConnectedEndpoint
host.endpoint contained duplicated logic from the sockerpair implementation and host.ConnectedEndpoint. Remove host.endpoint in favor of a host.ConnectedEndpoint wrapped in a socketpair end. PiperOrigin-RevId: 217240096 Change-Id: I4a3d51e3fe82bdf30e2d0152458b8499ab4c987c
Diffstat (limited to 'pkg/sentry/kernel/task.go')
-rw-r--r--pkg/sentry/kernel/task.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/task.go b/pkg/sentry/kernel/task.go
index 07ad1614c..4f0b7fe3f 100644
--- a/pkg/sentry/kernel/task.go
+++ b/pkg/sentry/kernel/task.go
@@ -590,6 +590,8 @@ func (t *Task) Value(key interface{}) interface{} {
return t.k
case uniqueid.CtxGlobalUniqueID:
return t.k.UniqueID()
+ case uniqueid.CtxGlobalUniqueIDProvider:
+ return t.k
case uniqueid.CtxInotifyCookie:
return t.k.GenerateInotifyCookie()
default: