diff options
author | Giuseppe Scrivano <giuseppe@scrivano.org> | 2020-09-10 00:19:39 +0200 |
---|---|---|
committer | Giuseppe Scrivano <giuseppe@scrivano.org> | 2020-09-10 19:17:01 +0200 |
commit | 686f6eccee0c20e1dc0789bde76a38cba7535e8e (patch) | |
tree | e773df0738d922980c806941e2404f5f3473d2f8 /libpod/container_internal.go | |
parent | e1b47296daaf4148d9970b59757a86e71bf8bb10 (diff) | |
download | podman-686f6eccee0c20e1dc0789bde76a38cba7535e8e.tar.gz podman-686f6eccee0c20e1dc0789bde76a38cba7535e8e.tar.bz2 podman-686f6eccee0c20e1dc0789bde76a38cba7535e8e.zip |
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>
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r-- | libpod/container_internal.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go index c41d81a2b..040da368d 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -380,6 +380,8 @@ func (c *Container) setupStorageMapping(dest, from *storage.IDMappingOptions) { } dest.GIDMap = append(dest.GIDMap, g) } + dest.HostUIDMapping = false + dest.HostGIDMapping = false } } |