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 <dinechin@redhat.com>
Signed-off-by: Francesco Giudici <fgiudici@redhat.com>
This commit is contained in:
Francesco Giudici 2021-09-27 15:57:34 +02:00
parent 315295e0ef
commit 2304a59601

View File

@ -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