Add "GELI Passphrase:" prompt to boot loader.
A new loader.conf(5) option of geom_eli_passphrase_prompt="YES" will now
allow you to enter your geli(8) root-mount credentials prior to invoking
the kernel.
See check-password.4th(8) for details.
Differential D2105
Add "GELI Passphrase:" prompt to boot loader. dteske on Mar 21 2015, 4:13 AM. Authored by Tags None Referenced Files
Details Add "GELI Passphrase:" prompt to boot loader. A new loader.conf(5) option of geom_eli_passphrase_prompt="YES" will now See check-password.4th(8) for details. Drop a head copy of check-password.4th into /boot and then apply the patch NB: The rest of your /boot files can be up to 2 years old but no older. https://svnweb.freebsd.org/base?view=revision&revision=273489 Now, put into /boot/loader.conf: geom_eli_passphrase_prompt="YES" and reboot. You should be prompted for a GELI passphrase before the menu (if enabled), NB: It doesn't matter if you're using GELI or not. However if you are using
Diff Detail
Event Timeline
Comment Actions We tested with using GRUB to make sure the kenv password string memory was wiped. The way we confirmed was the following. Setup a VM with full-disk encryption and a searchable plaintext password "abcd1234" for example. It took a few fixes, but the fixes Colin did to GELI did end up working wiping the string from memory, and the kenv variable. You'll need to do the same booting from the 4th loader though, make sure that it doesn't make other copies of the string which get left in memory. Comment Actions There is one remaining issue being discussed here: Issue: If geom_eli.ko is not loaded, the code that performs the reset of kenv(1) kern.geom.eli.passphrase is not invoked (leaking the contents to userland). Need to move the reset code out of sys/geom/eli/g_eli.c and into a standard part of the kernel so it can't be disabled/by-passed. Comment Actions Add patch to sys/kern/init_main.c: unset passphrase variable This prevents leaking variable contents to userland in the Comment Actions It was suggested that we do the reset right after successful mountroot. Comment Actions Fix comment: s/geli(4)/geli(8)/ |