From b8fc1af3637d0e467dcfdf170002b2922176dc4c Mon Sep 17 00:00:00 2001 From: Francesco Giudici Date: Mon, 27 Sep 2021 15:57:34 +0200 Subject: [PATCH] runtime: set the sandbox storage path static Since we now have "unix://" kind of socket returned by the SocketAddress() function, there is no more need to build the sandbox storage path dynamically to keep OS compatibility. Fixes: #2738 Suggested-by: Christophe de Dinechin Signed-off-by: Francesco Giudici (cherry picked from commit 2304a59601fb509060c9663232a0b0d4dcc0f34b) --- src/runtime/containerd-shim-v2/shim_management.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/containerd-shim-v2/shim_management.go b/src/runtime/containerd-shim-v2/shim_management.go index 81d938043..5ccf03304 100644 --- a/src/runtime/containerd-shim-v2/shim_management.go +++ b/src/runtime/containerd-shim-v2/shim_management.go @@ -185,7 +185,7 @@ func (s *service) mountPprofHandle(m *http.ServeMux, ociSpec *specs.Spec) { // GetSandboxesStoragePath returns the storage path where sandboxes info are stored func GetSandboxesStoragePath() string { - return filepath.Join(string(filepath.Separator), "run", "vc", "sbs") + return "/run/vc/sbs" } // SocketAddress returns the address of the unix domain socket for communicating with the