freebsd-dev/sys/geom
Allan Jude ec5c0e5be9 Implement boot-time encryption key passing (keybuf)
This patch adds a general mechanism for providing encryption keys to the
kernel from the boot loader. This is intended to enable GELI support at
boot time, providing a better mechanism for passing keys to the kernel
than environment variables. It is designed to be extensible to other
applications, and can easily handle multiple encrypted volumes with
different keys.

This mechanism is currently used by the pending GELI EFI work.
Additionally, this mechanism can potentially be used to interface with
GRUB, opening up options for coreboot+GRUB configurations with completely
encrypted disks.

Another benefit over the existing system is that it does not require
re-deriving the user key from the password at each boot stage.

Most of this patch was written by Eric McCorkle. It was extended by
Allan Jude with a number of minor enhancements and extending the keybuf
feature into boot2.

GELI user keys are now derived once, in boot2, then passed to the loader,
which reuses the key, then passes it to the kernel, where the GELI module
destroys the keybuf after decrypting the volumes.

Submitted by:	Eric McCorkle <eric@metricspace.net> (Original Version)
Reviewed by:	oshogbo (earlier version), cem (earlier version)
MFC after:	3 weeks
Relnotes:	yes
Sponsored by:	ScaleEngine Inc.
Differential Revision:	https://reviews.freebsd.org/D9575
2017-04-01 05:05:22 +00:00
..
bde
cache
concat
eli Implement boot-time encryption key passing (keybuf) 2017-04-01 05:05:22 +00:00
gate
journal Defer startup of gjournal switcher kproc. 2017-02-07 22:45:59 +00:00
label
linux_lvm
mirror Avoid sleeping when the mirror I/O queue is non-empty. 2017-03-29 19:39:07 +00:00
mountver
multipath Report disk addition errors on add or create subcommand. 2017-01-20 13:49:04 +00:00
nop
part After r315112 I broke the tests with eli, instead to pass 0, I should pass 2017-03-13 13:56:01 +00:00
raid g_raid: Prevent tasters from attempting excessively large reads 2017-01-12 06:58:31 +00:00
raid3
sched
shsec
stripe
uzip
vinum Fix logic error in gvinum's gv_set_sd_state() 2017-01-08 17:56:54 +00:00
virstor
zero
geom_aes.c
geom_bsd_enc.c
geom_bsd.c Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
geom_ccd.c
geom_ctl.c
geom_ctl.h
geom_dev.c When chunking large DIOCGDELETE, do it on stripe edge. 2017-03-08 12:18:58 +00:00
geom_disk.c Report disk flags via the sysctl tree 2017-03-13 11:09:17 +00:00
geom_disk.h Report random flash storage as non-rotating to GEOM_DISK. 2017-01-12 08:53:10 +00:00
geom_dump.c
geom_event.c
geom_flashmap.c - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
geom_fox.c
geom_int.h
geom_io.c
geom_kern.c
geom_map.c build: Unbreak LINT 2016-12-21 01:39:11 +00:00
geom_mbr_enc.c
geom_mbr.c
geom_redboot.c
geom_slice.c
geom_slice.h
geom_subr.c
geom_sunlabel_enc.c
geom_sunlabel.c
geom_vfs.c
geom_vfs.h
geom_vol_ffs.c
geom.h
notes