aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power/Kconfig
diff options
context:
space:
mode:
authorDomenico Andreoli <domenico.andreoli@linux.com>2020-05-07 09:19:53 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-05-19 17:48:08 +0200
commitc4f39a6c74389fcc93ac39056ef342f32ab57a23 (patch)
tree59060a6eeb86e2c22f3c681afc0beabdfa935a72 /kernel/power/Kconfig
parentab7e9b067f3d9cbec28cfca51d341efb421b7a51 (diff)
downloadlinux-c4f39a6c74389fcc93ac39056ef342f32ab57a23.tar.gz
PM: hibernate: Split off snapshot dev option
Make it possible to reduce the attack surface in case the snapshot device is not to be used from userspace. Signed-off-by: Domenico Andreoli <domenico.andreoli@linux.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power/Kconfig')
-rw-r--r--kernel/power/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
index c208566c844b09..4d0e6e815a2be1 100644
--- a/kernel/power/Kconfig
+++ b/kernel/power/Kconfig
@@ -80,6 +80,18 @@ config HIBERNATION
For more information take a look at <file:Documentation/power/swsusp.rst>.
+config HIBERNATION_SNAPSHOT_DEV
+ bool "Userspace snapshot device"
+ depends on HIBERNATION
+ default y
+ ---help---
+ Device used by the uswsusp tools.
+
+ Say N if no snapshotting from userspace is needed, this also
+ reduces the attack surface of the kernel.
+
+ If in doubt, say Y.
+
config PM_STD_PARTITION
string "Default resume partition"
depends on HIBERNATION