diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-06-17 14:53:04 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-06-17 17:13:58 -0400 |
commit | c385e6d36334342195203e5bd368f772992911d1 (patch) | |
tree | 615012a9961a0a4f818e43f9071d8dd9e88a4a4f /test/e2e/run_userns_test.go | |
parent | 7b5073b46e4ba3914ce526fa60ef91346f50f577 (diff) | |
download | podman-c385e6d36334342195203e5bd368f772992911d1.tar.gz podman-c385e6d36334342195203e5bd368f772992911d1.tar.bz2 podman-c385e6d36334342195203e5bd368f772992911d1.zip |
Don't ignore --user flag in rootless --userns keepid
Currently podman run --userns keep-id --user root:root fedora id
The --user flag is ignored. Removing this makes the code work correctly.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/e2e/run_userns_test.go')
-rw-r--r-- | test/e2e/run_userns_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/run_userns_test.go b/test/e2e/run_userns_test.go index 25f12ec2e..5b9a99daa 100644 --- a/test/e2e/run_userns_test.go +++ b/test/e2e/run_userns_test.go @@ -89,6 +89,13 @@ var _ = Describe("Podman UserNS support", func() { Expect(ok).To(BeTrue()) }) + It("podman --userns=keep-id --user root:root", func() { + session := podmanTest.Podman([]string{"run", "--userns=keep-id", "--user", "root:root", "alpine", "id", "-u"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + Expect(session.OutputToString()).To(Equal("0")) + }) + It("podman --userns=auto", func() { u, err := user.Current() Expect(err).To(BeNil()) |