[CRIU] [PATCH] cgroup: Set "soft" mode by default
Cyrill Gorcunov
gorcunov at openvz.org
Wed Jul 22 08:14:45 PDT 2015
In criu 1.6 if no --manage-cgroups option been specified
we still restore default (known) properties. But in commit
c7d646afb373 we've enhanced its semantics occasionally break
backward compatibility: if no --manage-cgroups passed at all
it's assumed that one asks to not touch cgroups at all on
restore. To restore old behaviour setup "soft" mode by
default.
Reported-by: Andrew Vagin <avagin at gmail.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
include/cr_options.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/cr_options.h b/include/cr_options.h
index 9ab8bbaaef64..bf57ef947a1e 100644
--- a/include/cr_options.h
+++ b/include/cr_options.h
@@ -31,7 +31,7 @@ struct cg_root_opt {
#define CG_MODE_FULL (1u << 3)
#define CG_MODE_STRICT (1u << 4)
-#define CG_MODE_DEFAULT (CG_MODE_IGNORE)
+#define CG_MODE_DEFAULT (CG_MODE_SOFT)
struct cr_options {
int final_state;
--
2.4.3
More information about the CRIU
mailing list