mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 16:36:38 +00:00
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 <sebastien.boeuf@intel.com>
This commit is contained in:
@@ -570,8 +570,6 @@ func constraintGRPCSpec(grpcSpec *grpc.Spec) {
|
|||||||
grpcSpec.Mounts[idx].Type = "tmpfs"
|
grpcSpec.Mounts[idx].Type = "tmpfs"
|
||||||
grpcSpec.Mounts[idx].Source = "shm"
|
grpcSpec.Mounts[idx].Source = "shm"
|
||||||
grpcSpec.Mounts[idx].Options = []string{"noexec", "nosuid", "nodev", "mode=1777", "size=65536k"}
|
grpcSpec.Mounts[idx].Options = []string{"noexec", "nosuid", "nodev", "mode=1777", "size=65536k"}
|
||||||
|
|
||||||
break
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user