diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2013-10-06 20:05:46 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-16 16:01:44 -0400 |
commit | 8eaede49dfdc1ff1d727f9c913665b8009945191 (patch) | |
tree | 094c592c127142c4f01766fb82e3a7973c87ca1c /lib | |
parent | e8b5cbb041130ef297c90f8af2d3d45dfb9e6d15 (diff) |
sysrq: Allow magic SysRq key functions to be disabled through Kconfig
Turn the initial value of sysctl kernel.sysrq (SYSRQ_DEFAULT_ENABLE)
into a Kconfig variable.
Original version by Bastian Blank <waldi@debian.org>.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 06344d986eb9..29329374ff0d 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -312,6 +312,15 @@ config MAGIC_SYSRQ | |||
312 | keys are documented in <file:Documentation/sysrq.txt>. Don't say Y | 312 | keys are documented in <file:Documentation/sysrq.txt>. Don't say Y |
313 | unless you really know what this hack does. | 313 | unless you really know what this hack does. |
314 | 314 | ||
315 | config MAGIC_SYSRQ_DEFAULT_ENABLE | ||
316 | hex "Enable magic SysRq key functions by default" | ||
317 | depends on MAGIC_SYSRQ | ||
318 | default 0x1 | ||
319 | help | ||
320 | Specifies which SysRq key functions are enabled by default. | ||
321 | This may be set to 1 or 0 to enable or disable them all, or | ||
322 | to a bitmask as described in Documentation/sysrq.txt. | ||
323 | |||
315 | config DEBUG_KERNEL | 324 | config DEBUG_KERNEL |
316 | bool "Kernel debugging" | 325 | bool "Kernel debugging" |
317 | help | 326 | help |