check-password.4th (280937) | check-password.4th (280938) |
---|---|
1\ Copyright (c) 2006-2015 Devin Teske <dteske@FreeBSD.org> 2\ All rights reserved. 3\ 4\ Redistribution and use in source and binary forms, with or without 5\ modification, are permitted provided that the following conditions 6\ are met: 7\ 1. Redistributions of source code must retain the above copyright 8\ notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17\ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18\ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19\ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20\ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21\ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23\ SUCH DAMAGE. 24\ | 1\ Copyright (c) 2006-2015 Devin Teske <dteske@FreeBSD.org> 2\ All rights reserved. 3\ 4\ Redistribution and use in source and binary forms, with or without 5\ modification, are permitted provided that the following conditions 6\ are met: 7\ 1. Redistributions of source code must retain the above copyright 8\ notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17\ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18\ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19\ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20\ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21\ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23\ SUCH DAMAGE. 24\ |
25\ $FreeBSD: head/sys/boot/forth/check-password.4th 280937 2015-04-01 01:54:28Z dteske $ | 25\ $FreeBSD: head/sys/boot/forth/check-password.4th 280938 2015-04-01 02:01:34Z dteske $ |
26 27marker task-check-password.4th 28 29include /boot/screen.4th 30 31vocabulary password-processing 32only forth also password-processing definitions 33 --- 107 unchanged lines hidden (view full) --- 141 s" Boot Password: " read ( prompt -- ) 142 2dup readval readlen @ compare 0<> 143 while 144 3000 ms ." loader: incorrect password" 10 emit 145 repeat 146 2drop read-reset 147 else drop then 148 | 26 27marker task-check-password.4th 28 29include /boot/screen.4th 30 31vocabulary password-processing 32only forth also password-processing definitions 33 --- 107 unchanged lines hidden (view full) --- 141 s" Boot Password: " read ( prompt -- ) 142 2dup readval readlen @ compare 0<> 143 while 144 3000 ms ." loader: incorrect password" 10 emit 145 repeat 146 2drop read-reset 147 else drop then 148 |
149 \ Prompt for GEOM ELI (geli(4)) passphrase if enabled 150 s" geom_eli_passphrase_prompt" getenv dup -1 <> if 151 s" YES" compare-insensitive 0= if 152 s" GELI Passphrase: " read ( prompt -- ) 153 readval readlen @ s" kern.geom.eli.passphrase" setenv 154 read-reset 155 then 156 else drop then 157 |
|
149 \ Exit if a password was not set 150 s" password" getenv -1 = if exit else drop then 151 152 \ We should prevent the user from visiting the menu or dropping to the 153 \ interactive loader(8) prompt, but still allow the machine to boot... 154 155 0 autoboot 156 --- 14 unchanged lines hidden --- | 158 \ Exit if a password was not set 159 s" password" getenv -1 = if exit else drop then 160 161 \ We should prevent the user from visiting the menu or dropping to the 162 \ interactive loader(8) prompt, but still allow the machine to boot... 163 164 0 autoboot 165 --- 14 unchanged lines hidden --- |