]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Populate the GELI passphrase cache with the kern.geom.eli.passphrase
authorColin Percival <cperciva@FreeBSD.org>
Wed, 22 Oct 2014 23:41:15 +0000 (23:41 +0000)
committerColin Percival <cperciva@FreeBSD.org>
Wed, 22 Oct 2014 23:41:15 +0000 (23:41 +0000)
commit66427784c1233629cbe4298073b472c2af4a631f
tree42841fc5abb0b7084695c9c3c7348c8bb0a10f33
parentd4fef7d3422759b8c6177ae5e76f3ff95d7a3dc9
Populate the GELI passphrase cache with the kern.geom.eli.passphrase
variable (if any) provided in the boot environment.  Unset it from
the kernel environment after doing this, so that the passphrase is
no longer present in kernel memory once we enter userland.

This will make it possible to provide a GELI passphrase via the boot
loader; FreeBSD's loader does not yet do this, but GRUB (and PCBSD)
will have support for this soon.

Tested by: kmoore
sys/geom/eli/g_eli.c