Secure barebox
Hi,
I like to secure access to barebox using a password. passwd seems to be the right command, but setting a password does not seem to have any effect.
After a reset, access to barebox is not limited as far as I can tell.
Any ideas?
regards,
mwarning
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Hi Moritz,
Quoted 8 lines · Moritz Warning
Hi,
I like to secure access to barebox using a password. passwd seems to be the right command, but setting a password does not seem to have any effect.
After a reset, access to barebox is not limited as far as I can tell.
I've never really used password support. I just gave it a try and I can only say: It's not usable in its current state. The thing you were missing is: You must set nv.login.timeout to something nonzero:
nv.login.timeout=3; saveenv
Then afterwards I get asked for a password. If I enter this correctly I get to the prompt, if I enter the wrong password I'm asked for a password again. However, when I press ctrl-c or just an empty password I also get to the prompt.
The password protection support is currently implemented in the /env/bin/init script. This makes the whole stuff very fragile. The barebox shell is not designed to be secure. Once the shell is started the system is insecure, so the password asking process should be done before entering the shell, not from the shell.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Thanks for the information!
Quoted 28 lines · Sascha Hauer
Hi Moritz,
Quoted 8 lines · Moritz Warning
Hi,
I like to secure access to barebox using a password. passwd seems to be the right command, but setting a password does not seem to have any effect.
After a reset, access to barebox is not limited as far as I can tell.
I've never really used password support. I just gave it a try and I can only say: It's not usable in its current state. The thing you were missing is: You must set nv.login.timeout to something nonzero:
nv.login.timeout=3; saveenv
Then afterwards I get asked for a password. If I enter this correctly I get to the prompt, if I enter the wrong password I'm asked for a password again. However, when I press ctrl-c or just an empty password I also get to the prompt.
The password protection support is currently implemented in the /env/bin/init script. This makes the whole stuff very fragile. The barebox shell is not designed to be secure. Once the shell is started the system is insecure, so the password asking process should be done before entering the shell, not from the shell.
Quoted 2 lines
Sascha
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Oh, anyway; what happens when the timeout is 0.
How can you access the barebox again?
Quoted 31 lines · Moritz Warning
Thanks for the information!
Quoted 28 lines · Sascha Hauer
Hi Moritz,
Quoted 8 lines · Moritz Warning
Hi,
I like to secure access to barebox using a password. passwd seems to be the right command, but setting a password does not seem to have any effect.
After a reset, access to barebox is not limited as far as I can tell.
I've never really used password support. I just gave it a try and I can only say: It's not usable in its current state. The thing you were missing is: You must set nv.login.timeout to something nonzero:
nv.login.timeout=3; saveenv
Then afterwards I get asked for a password. If I enter this correctly I get to the prompt, if I enter the wrong password I'm asked for a password again. However, when I press ctrl-c or just an empty password I also get to the prompt.
The password protection support is currently implemented in the /env/bin/init script. This makes the whole stuff very fragile. The barebox shell is not designed to be secure. Once the shell is started the system is insecure, so the password asking process should be done before entering the shell, not from the shell.
Quoted 8 lines
Quoted 2 lines
Sascha
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 2 lines · Moritz Warning
Oh, anyway; what happens when the timeout is 0.
How can you access the barebox again?
You can try holding ctrl-c while starting the board. If that doesn't work I think you have to erase the environment externally. Where do you boot from?
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
In only need to hold down any key to enter Barebox when the timeout is set to zero. So you don't lock yourself out.
I was a bit wary to try it out. :)
Quoted 10 lines · Sascha Hauer
Quoted 2 lines · Moritz Warning
Oh, anyway; what happens when the timeout is 0.
How can you access the barebox again?You can try holding ctrl-c while starting the board. If that doesn't work I think you have to erase the environment externally. Where do you boot from?
Sascha
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox