diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2013-09-16 19:49:58 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-09-19 08:49:47 +0200 |
commit | bb89ea62a0b7e5c6fcedfe1a28b6dd82236247ce (patch) | |
tree | 45448d5807a24e8bd1b42e27994334e590763f2f /common/startup.c | |
parent | 54385ace4b98f8131d53757d18858d0729960dc2 (diff) | |
download | barebox-bb89ea62a0b7e5c6fcedfe1a28b6dd82236247ce.tar.gz barebox-bb89ea62a0b7e5c6fcedfe1a28b6dd82236247ce.tar.xz |
login: disable input console if password wrong
so we guarantee that barebox is secured again user interaction
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/startup.c')
-rw-r--r-- | common/startup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/startup.c b/common/startup.c index 9b33a92c86..0a36c07aae 100644 --- a/common/startup.c +++ b/common/startup.c @@ -138,6 +138,8 @@ void __noreturn start_barebox(void) run_command("source /env/bin/init", 0); } else { pr_err("/env/bin/init not found\n"); + if (IS_ENABLED(CONFIG_CMD_LOGIN)) + while(run_command("login -t 0", 0)); } } |