diff --git a/runsc/sandbox/sandbox.go b/runsc/sandbox/sandbox.go index ea6acb6a1..d1a3758ad 100644 --- a/runsc/sandbox/sandbox.go +++ b/runsc/sandbox/sandbox.go @@ -811,6 +811,11 @@ func (s *Sandbox) createSandboxProcess(conf *config.Config, args *Args, startSyn if !conf.TestOnlyAllowRunAsCurrentUserWithoutChroot { // Setting cmd.Env = nil causes cmd to inherit the current process's env. cmd.Env = []string{} + // runsc-race with glibc needs to disable rseq. + glibcTunables := os.Getenv("GLIBC_TUNABLES") + if glibcTunables != "" { + cmd.Env = append(cmd.Env, fmt.Sprintf("GLIBC_TUNABLES=%s", glibcTunables)) + } } // If there is a gofer, sends all socket ends to the sandbox.