9
0
Fork 0
barebox/defaultenv
Sascha Hauer 90e766a78f login: rework login mechanism
We used to have the login functionality in the /env/bin/init script.
This is hard to review and it's too easy to break the login functionality
with changes to this script. Move the places to ask for a password to
C code where we have only a few places where we have to ask for a password.
Mainly these are run_shell() and the menutree command.

This patch introduces a login() function which will only return if the correct
password has been entered. Following calls will return immediately without
asking for a password again.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-08-28 08:00:27 +02:00
..
defaultenv-1 mtd: nand: create bb devices automatically 2014-04-28 11:45:09 +02:00
defaultenv-2-base login: rework login mechanism 2015-08-28 08:00:27 +02:00
defaultenv-2-dfu/boot remove unused boot-menu-add-entry 2014-06-23 09:19:52 +02:00
defaultenv-2-menu/menu defenv-2: replace menu with menutree 2014-03-28 09:44:44 +01:00
.gitignore defaultenv: ignore barebox_zero_env 2015-02-11 08:34:29 +01:00
Makefile defaultenv: generate force-built-in (zero) environment file 2015-02-04 12:47:13 +01:00
defaultenv.c defaultenv: Reorder overlay append order 2014-09-11 09:15:17 +02:00