[patch 1/3] Kconfig: Introduce CHECKPOINT_RESTORE symbol

Cyrill Gorcunov
2011-12-12T20:17:53Z

[-- Attachment #1: kconfig-add-checkpoint-restore --]
[-- Type: text/plain, Size: 1149 bytes --]

In a sake of checkpoint/restore we need auxilary
features being compiled into the kernel, such as additional
prctl codes, /proc/<pid>/map_files and etc...
but same time these features are not mandatory for a
regular kernel so CHECKPOINT_RESTORE config symbol should
bring a way to disable them all at once if one wish to get
rid of additional functionality.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---
init/Kconfig | 11 +++++++++++
1 file changed, 11 insertions(+)

Index: linux-2.6.git/init/Kconfig
===================================================================
--- linux-2.6.git.orig/init/Kconfig
+++ linux-2.6.git/init/Kconfig
@@ -773,6 +773,17 @@ config DEBUG_BLK_CGROUP

endif # CGROUPS

+config CHECKPOINT_RESTORE
+ bool "Checkpoint/restore support" if EXPERT
+ default n
+ help
+ Enables additional kernel features in a sake of checkpoint/restore.
+ In particular it adds auxiliary prctl codes to setup process text,
+ data and heap segment sizes, and a few additional /proc filesystem
+ entries.
+
+ If unsure, say N here.
+
menuconfig NAMESPACES
bool "Namespaces support" if EXPERT
default !EXPERT