summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-06-23 18:21:48 +0000
committergVisor bot <gvisor-bot@google.com>2021-06-23 18:21:48 +0000
commita4301bae281c2eed0ac91d396e789c00597e6502 (patch)
tree16468ec7a0b7cb132eabb465f14bfaa1c50f6b97
parent184313004a79955d83db93cffe24a13154f1e6a6 (diff)
parent6b23d2a08e71ce7d93b1d52e545f792f549225dc (diff)
Merge release-20210614.0-18-g6b23d2a08 (automated)
-rw-r--r--pkg/sentry/kernel/ptrace.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/ptrace.go b/pkg/sentry/kernel/ptrace.go
index a6287fd6a..20563f02a 100644
--- a/pkg/sentry/kernel/ptrace.go
+++ b/pkg/sentry/kernel/ptrace.go
@@ -294,7 +294,7 @@ func (t *Task) isYAMADescendantOfLocked(ancestor *Task) bool {
// Precondition: the TaskSet mutex must be locked (for reading or writing).
func (t *Task) hasYAMAExceptionForLocked(tracer *Task) bool {
- allowed, ok := t.k.ptraceExceptions[t]
+ allowed, ok := t.k.ptraceExceptions[t.tg.leader]
if !ok {
return false
}