Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'criu/cr-service.c')
-rw-r--r--criu/cr-service.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/criu/cr-service.c b/criu/cr-service.c
index 219a98624..0f806f7f8 100644
--- a/criu/cr-service.c
+++ b/criu/cr-service.c
@@ -28,6 +28,7 @@
#include "net.h"
#include "mount.h"
#include "cgroup.h"
+#include "cgroup-props.h"
#include "action-scripts.h"
#include "sockets.h"
#include "irmap.h"
@@ -453,6 +454,17 @@ static int setup_opts_from_req(int sk, CriuOpts *req)
opts.manage_cgroups = mode;
}
+ if (req->cgroup_props)
+ opts.cgroup_props = req->cgroup_props;
+
+ if (req->cgroup_props_file)
+ opts.cgroup_props_file = req->cgroup_props_file;
+
+ for (i = 0; i < req->n_cgroup_dump_controller; i++) {
+ if (!cgp_add_dump_controller(req->cgroup_dump_controller[i]))
+ goto err;
+ }
+
if (req->has_auto_ext_mnt)
opts.autodetect_ext_mounts = req->auto_ext_mnt;