c/r: introduce CHECKPOINT_RESTORE symbol
authorCyrill Gorcunov <[email protected]>
Fri, 13 Jan 2012 01:20:49 +0000 (17:20 -0800)
committerLinus Torvalds <[email protected]>
Fri, 13 Jan 2012 04:13:12 +0000 (20:13 -0800)
For 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 <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Andrew Vagin <[email protected]>
Cc: Serge Hallyn <[email protected]>
Cc: Vasiliy Kulikov <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
init/Kconfig

index 018d206c21f74a8af5c9af7388c28b33c39d143c..6ac2236244c381f3bef900c600d1f9c1ba41c7f5 100644 (file)
@@ -783,6 +783,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