diff options
author | Daniel Thompson <daniel.thompson@linaro.org> | 2014-11-06 14:36:47 +0000 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2014-11-11 09:31:52 -0600 |
commit | b8017177cdfd46b0222b3b74b206780f52f22f3d (patch) | |
tree | 7f738d28dbf3f6ea20a491ca5a2216777efb2e6e /kernel/debug/kdb | |
parent | 420c2b1b0df84f5956036b5185cc1e11d247817d (diff) | |
download | lwn-b8017177cdfd46b0222b3b74b206780f52f22f3d.tar.gz lwn-b8017177cdfd46b0222b3b74b206780f52f22f3d.zip |
kdb: Allow access to sensitive commands to be restricted by default
Currently kiosk mode must be explicitly requested by the bootloader or
userspace. It is convenient to be able to change the default value in a
similar manner to CONFIG_MAGIC_SYSRQ_DEFAULT_MASK.
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'kernel/debug/kdb')
-rw-r--r-- | kernel/debug/kdb/kdb_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c index fe1ac56b62e9..8d84979cbe05 100644 --- a/kernel/debug/kdb/kdb_main.c +++ b/kernel/debug/kdb/kdb_main.c @@ -47,7 +47,7 @@ #undef MODULE_PARAM_PREFIX #define MODULE_PARAM_PREFIX "kdb." -static int kdb_cmd_enabled; +static int kdb_cmd_enabled = CONFIG_KDB_DEFAULT_ENABLE; module_param_named(cmd_enable, kdb_cmd_enabled, int, 0600); #define GREP_LEN 256 |