From a1f73d095400f13999e61578567f338a9f13a008 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 24 Apr 2020 12:25:18 +0200 Subject: podman: fix podman --group-add Signed-off-by: Giuseppe Scrivano --- cmd/podman/common/specgen.go | 1 + test/e2e/run_test.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/podman/common/specgen.go b/cmd/podman/common/specgen.go index fda11c0af..e14fd78b4 100644 --- a/cmd/podman/common/specgen.go +++ b/cmd/podman/common/specgen.go @@ -449,6 +449,7 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *ContainerCLIOpts, args []string } s.CgroupParent = c.CGroupParent s.CgroupsMode = c.CGroupsMode + s.Groups = c.GroupAdd // TODO WTF //cgroup := &cc.CgroupConfig{ // Cgroupns: c.String("cgroupns"), diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index 735fc1d5d..6386b8a70 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -566,7 +566,6 @@ var _ = Describe("Podman run", func() { }) It("podman run with group-add", func() { - Skip(v2fail) SkipIfRootless() session := podmanTest.Podman([]string{"run", "--rm", "--group-add=audio", "--group-add=nogroup", "--group-add=777", ALPINE, "id"}) session.WaitWithDefaultTimeout() -- cgit v1.2.3-54-g00ecf