summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-12-10 00:34:05 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2018-12-12 04:22:44 -0800
commit64ac54625924e226611d53497a941affaddb0a23 (patch)
tree4d723ecbe196b872dfa973b634bd778fba2b5b60 /libpod
parent1f547b2936af06656eaf579c3adaf8f345d227fc (diff)
downloadpodman-64ac54625924e226611d53497a941affaddb0a23.tar.gz
podman-64ac54625924e226611d53497a941affaddb0a23.tar.bz2
podman-64ac54625924e226611d53497a941affaddb0a23.zip
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 <dwalsh@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/oci.go1
1 files changed, 1 insertions, 0 deletions
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