Commit 067bce1a06c1f84146f873a598cd7c3a28eee1d5

Authored by Cyrill Gorcunov
Committed by Linus Torvalds
1 parent 85bbddc37b

c/r: introduce CHECKPOINT_RESTORE symbol

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 <gorcunov@openvz.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Andrew Vagin <avagin@openvz.org>
Cc: Serge Hallyn <serge.hallyn@canonical.com>
Cc: Vasiliy Kulikov <segoon@openwall.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 11 additions and 0 deletions Side-by-side Diff

... ... @@ -783,6 +783,17 @@
783 783  
784 784 endif # CGROUPS
785 785  
  786 +config CHECKPOINT_RESTORE
  787 + bool "Checkpoint/restore support" if EXPERT
  788 + default n
  789 + help
  790 + Enables additional kernel features in a sake of checkpoint/restore.
  791 + In particular it adds auxiliary prctl codes to setup process text,
  792 + data and heap segment sizes, and a few additional /proc filesystem
  793 + entries.
  794 +
  795 + If unsure, say N here.
  796 +
786 797 menuconfig NAMESPACES
787 798 bool "Namespaces support" if EXPERT
788 799 default !EXPERT