From 8c4421759d127f23d9745c6b495e5d69e171b9a6 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Thu, 25 Aug 2016 15:10:55 -0700 Subject: Cr50: Mark several console commands as safe Even when CONFIG_RESTRICTED_CONSOLE_COMMANDS is enabled, there are many commands that can't do anything dangerous. This marks some of those commands as safe to use, even when restrictions are enforced. I'm only marking commands that are used by the Cr50, since that's the only board that has restrictions. BUG=chrome-os-partner:55322 BRANCH=none TEST=make buildall, test on Cr50 hardware Change-Id: I6289d332830175b6adcb6b20cb4c21d01d27a25e Signed-off-by: Bill Richardson Reviewed-on: https://chromium-review.googlesource.com/376188 Reviewed-by: Randall Spangler --- common/console.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/console.c') diff --git a/common/console.c b/common/console.c index 785f71ce56..a935028e30 100644 --- a/common/console.c +++ b/common/console.c @@ -766,7 +766,7 @@ static int command_history(int argc, char **argv) return EC_SUCCESS; } -DECLARE_CONSOLE_COMMAND(history, command_history, - NULL, - "Print console history"); +DECLARE_SAFE_CONSOLE_COMMAND(history, command_history, + NULL, + "Print console history"); #endif -- cgit v1.2.1