summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/platform/ptrace
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-07-09 02:02:58 +0000
committergVisor bot <gvisor-bot@google.com>2021-07-09 02:02:58 +0000
commitef96bb2d4957442a326b3610a3e247a33ae5aaff (patch)
tree1fa52755b453afe34d17247280ce02eac9a4a156 /pkg/sentry/platform/ptrace
parent673a86a67ecf6bc6b2881fd6ff3456b51e6b00ef (diff)
parentde29d8d415ab539195840aeba57a17cd6c89218f (diff)
Merge release-20210628.0-33-gde29d8d41 (automated)
Diffstat (limited to 'pkg/sentry/platform/ptrace')
-rw-r--r--pkg/sentry/platform/ptrace/subprocess_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/platform/ptrace/subprocess_linux.go b/pkg/sentry/platform/ptrace/subprocess_linux.go
index 4f0260432..06a3bd340 100644
--- a/pkg/sentry/platform/ptrace/subprocess_linux.go
+++ b/pkg/sentry/platform/ptrace/subprocess_linux.go
@@ -181,7 +181,7 @@ func attachedThread(flags uintptr, defaultAction linux.BPFAction) (*thread, erro
// Set an aggressive BPF filter for the stub and all it's children. See
// the description of the BPF program built above.
- if errno := seccomp.SetFilter(instrs); errno != 0 {
+ if errno := seccomp.SetFilterInChild(instrs); errno != 0 {
unix.RawSyscall(unix.SYS_EXIT, uintptr(errno), 0, 0)
}