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/cgroup-props.c')
-rw-r--r--criu/cgroup-props.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/criu/cgroup-props.c b/criu/cgroup-props.c
index 5bed7dd9d..1b85c5b5a 100644
--- a/criu/cgroup-props.c
+++ b/criu/cgroup-props.c
@@ -35,12 +35,29 @@ static const char *____criu_global_props____[] = {
"tasks",
};
+/* cgroup2 global properties */
+// clang-format off
+static const char *____criu_global_props_v2____[] = {
+ "cgroup.subtree_control",
+ "cgroup.max.descendants",
+ "cgroup.max.depth",
+ "cgroup.freeze",
+ "cgroup.type",
+};
+// clang-format on
+
cgp_t cgp_global = {
.name = "____criu_global_props____",
.nr_props = ARRAY_SIZE(____criu_global_props____),
.props = ____criu_global_props____,
};
+cgp_t cgp_global_v2 = {
+ .name = "____criu_global_props_v2____",
+ .nr_props = ARRAY_SIZE(____criu_global_props_v2____),
+ .props = ____criu_global_props_v2____,
+};
+
typedef struct {
struct list_head list;
cgp_t cgp;