summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/mq
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2021-11-01 16:05:18 -0700
committergVisor bot <gvisor-bot@google.com>2021-11-01 16:07:40 -0700
commit9776edb3fa9e67a28182aedc9342ef9c1b556d7c (patch)
treeb62780ff71219f1257e359b43ab33592f0ca7a03 /pkg/sentry/kernel/mq
parentdf6043afa02208bf9a6c2ac7986096869e9e2907 (diff)
Move ThreadGroupIDFromContext to kernel/auth.
This function doesn't belong in the global context package. Move to a more suitable package to break the dependency cycle. PiperOrigin-RevId: 406942122
Diffstat (limited to 'pkg/sentry/kernel/mq')
-rw-r--r--pkg/sentry/kernel/mq/mq.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/mq/mq.go b/pkg/sentry/kernel/mq/mq.go
index 07482decf..7515a2772 100644
--- a/pkg/sentry/kernel/mq/mq.go
+++ b/pkg/sentry/kernel/mq/mq.go
@@ -399,7 +399,7 @@ func (q *Queue) Flush(ctx context.Context) {
q.mu.Lock()
defer q.mu.Unlock()
- pid, ok := context.ThreadGroupIDFromContext(ctx)
+ pid, ok := auth.ThreadGroupIDFromContext(ctx)
if ok {
if q.subscriber != nil && pid == q.subscriber.pid {
q.subscriber = nil