From 87f90ce14abf36fbf85f6128b3024ea89a44d670 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sat, 1 Sep 2018 12:51:00 -0400 Subject: Fix pod sharing for utsmode We should be sharing cgroups namespace by default in pods uts namespace sharing was broken in pods. Create a new libpod/pkg/namespaces for handling of namespace fields in containers Signed-off-by: Daniel J Walsh Closes: #1418 Approved by: mheon --- test/e2e/rootless_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/e2e/rootless_test.go b/test/e2e/rootless_test.go index 84d5cd6f1..72ca37d6e 100644 --- a/test/e2e/rootless_test.go +++ b/test/e2e/rootless_test.go @@ -6,6 +6,7 @@ import ( "os" "os/exec" "path/filepath" + "runtime" "syscall" . "github.com/onsi/ginkgo" @@ -153,6 +154,8 @@ var _ = Describe("Podman rootless", func() { runRootlessHelper := func(args []string) { f := func(rootlessTest PodmanTest, xdgRuntimeDir string, home string, mountPath string) { + runtime.LockOSThread() + defer runtime.UnlockOSThread() env := os.Environ() env = append(env, fmt.Sprintf("XDG_RUNTIME_DIR=%s", xdgRuntimeDir)) env = append(env, fmt.Sprintf("HOME=%s", home)) -- cgit v1.2.3-54-g00ecf