From 64ac54625924e226611d53497a941affaddb0a23 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 10 Dec 2018 00:34:05 -0500 Subject: Set Socket label for contianer This will allow container processes to write to the CRIU socket that gets injected into the container. Signed-off-by: Daniel J Walsh --- libpod/oci.go | 1 + 1 file changed, 1 insertion(+) (limited to 'libpod/oci.go') diff --git a/libpod/oci.go b/libpod/oci.go index 3222f9403..093bfdd35 100644 --- a/libpod/oci.go +++ b/libpod/oci.go @@ -861,6 +861,7 @@ func (r *OCIRuntime) execStopContainer(ctr *Container, timeout uint) error { // checkpointContainer checkpoints the given container func (r *OCIRuntime) checkpointContainer(ctr *Container, options ContainerCheckpointOptions) error { + label.SetSocketLabel(ctr.ProcessLabel()) // imagePath is used by CRIU to store the actual checkpoint files imagePath := ctr.CheckpointPath() // workPath will be used to store dump.log and stats-dump -- cgit v1.2.3-54-g00ecf