]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r273489 (cperciva):
authorgjb <gjb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 8 Jul 2015 09:54:17 +0000 (09:54 +0000)
committergjb <gjb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 8 Jul 2015 09:54:17 +0000 (09:54 +0000)
commite98808fa8377837046b8d4a71b48705b1f32f6ca
treedee7b05991dbfbfa517c7dc1d89e8f5bdede2f6e
parent2c202c491a88e154f4553d1b5d5095740813b255
MFC r273489 (cperciva):
 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.

 Note: head and stable/10 differ as a result of r273174, which renames
 the getenv(), setenv(), and unsetenv() functions with kern_getenv(),
 kern_setenv(), and kern_unsetenv(), which was reverted in the relevant
 parts of this change in 10-STABLE.

PR: 200448
Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@285263 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/geom/eli/g_eli.c