mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-30 05:20:41 +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:
parent
08909b2213
commit
80996b3b40
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user