summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-10-29 18:45:49 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-10-30 05:21:34 -0400
commit916825b6753086d7712ba593e5381b9bd49aae96 (patch)
tree49fd5ad65e97f4a3fd79685203e5722d77dcab8d /libpod
parent228396a99dc88fc828f23d4072a46ca8de90282f (diff)
downloadpodman-916825b6753086d7712ba593e5381b9bd49aae96.tar.gz
podman-916825b6753086d7712ba593e5381b9bd49aae96.tar.bz2
podman-916825b6753086d7712ba593e5381b9bd49aae96.zip
Pod's that share the IPC Namespace need to share /dev/shm
Containers that share IPC Namespaces share each others /dev/shm, which means a private /dev/shm needs to be setup for the infra container. Added a system test and an e2e test to make sure the /dev/shm is shared. Fixes: https://github.com/containers/podman/issues/8181 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/runtime_pod_infra_linux.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/runtime_pod_infra_linux.go b/libpod/runtime_pod_infra_linux.go
index 7f58e86d8..76419587a 100644
--- a/libpod/runtime_pod_infra_linux.go
+++ b/libpod/runtime_pod_infra_linux.go
@@ -131,6 +131,7 @@ func (r *Runtime) makeInfraContainer(ctx context.Context, p *Pod, imgName, rawIm
logrus.Debugf("Using %q as infra container entrypoint", entryCmd)
+ g.RemoveMount("/dev/shm")
if isRootless {
g.RemoveMount("/dev/pts")
devPts := spec.Mount{