From 80996b3b4069ef70df87e2dcab5c8e85ecd47c2e Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Wed, 28 Mar 2018 08:44:40 -0700 Subject: [PATCH] virtcontainers: kata_agent: Handle several /dev/shm The kata_agent.go code breaks after the first /dev/shm. But in case several are defined, the agent will crash since other /dev/shm will be wrongly configured in the OCI spec mounts. Fixes #127 Signed-off-by: Sebastien Boeuf --- virtcontainers/kata_agent.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/virtcontainers/kata_agent.go b/virtcontainers/kata_agent.go index 1350f69f90..f5d950aeee 100644 --- a/virtcontainers/kata_agent.go +++ b/virtcontainers/kata_agent.go @@ -570,8 +570,6 @@ func constraintGRPCSpec(grpcSpec *grpc.Spec) { grpcSpec.Mounts[idx].Type = "tmpfs" grpcSpec.Mounts[idx].Source = "shm" grpcSpec.Mounts[idx].Options = []string{"noexec", "nosuid", "nodev", "mode=1777", "size=65536k"} - - break } } }