9
0
Fork 0
barebox/defaultenv/defaultenv-2-base
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
..
bin login: rework login mechanism 2015-08-28 08:00:27 +02:00
boot remove unused boot-menu-add-entry 2014-06-23 09:19:52 +02:00
data remove unused boot-menu-add-entry 2014-06-23 09:19:52 +02:00
init move defaultenv-2 to defaultenv/defaultenv-2-* 2014-02-21 17:06:50 +01:00
network default environment: force a specific return value 2014-04-24 09:03:31 +02:00
nv defaultenv-2: Make use of nonvolatile variables 2014-11-06 12:23:12 +01:00
config defaultenv-2: Make use of nonvolatile variables 2014-11-06 12:23:12 +01:00