mirror of
https://github.com/containers/podman.git
synced 2025-12-18 05:32:53 +08:00
libpod: read mappings when joining a container userns
when joining an existing container user namespace, read the existing mappings so the storage can be created with the correct ownership. Closes: https://github.com/containers/podman/issues/7547 Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
This commit is contained in:
@@ -277,6 +277,13 @@ var _ = Describe("Podman UserNS support", func() {
|
||||
|
||||
ok, _ := session.GrepString("4998")
|
||||
Expect(ok).To(BeTrue())
|
||||
|
||||
session = podmanTest.Podman([]string{"run", "--rm", "--userns=container:" + ctrName, "--net=container:" + ctrName, "alpine", "cat", "/proc/self/uid_map"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
|
||||
ok, _ = session.GrepString("4998")
|
||||
Expect(ok).To(BeTrue())
|
||||
})
|
||||
|
||||
It("podman --user with volume", func() {
|
||||
|
||||
Reference in New Issue
Block a user