| Index: sandbox/linux/seccomp-bpf/sandbox_bpf.cc
|
| diff --git a/sandbox/linux/seccomp-bpf/sandbox_bpf.cc b/sandbox/linux/seccomp-bpf/sandbox_bpf.cc
|
| index 555f672f4359d140134fab58e696634d504debe7..7663cad0ffe85117dbc7f0bc6e530c30cdc9f51e 100644
|
| --- a/sandbox/linux/seccomp-bpf/sandbox_bpf.cc
|
| +++ b/sandbox/linux/seccomp-bpf/sandbox_bpf.cc
|
| @@ -119,10 +119,9 @@ bool SandboxBPF::StartSandbox(SeccompLevel seccomp_level) {
|
| const bool supports_tsync = KernelSupportsSeccompTsync();
|
|
|
| if (seccomp_level == SeccompLevel::SINGLE_THREADED) {
|
| - if (!IsSingleThreaded(proc_task_fd_.get())) {
|
| - SANDBOX_DIE("Cannot start sandbox; process is already multi-threaded");
|
| - return false;
|
| - }
|
| + // Wait for /proc/self/task/ to update if needed and assert the
|
| + // process is single threaded.
|
| + ThreadHelpers::AssertSingleThreaded(proc_task_fd_.get());
|
| } else if (seccomp_level == SeccompLevel::MULTI_THREADED) {
|
| if (IsSingleThreaded(proc_task_fd_.get())) {
|
| SANDBOX_DIE("Cannot start sandbox; "
|
|
|