freebsd-nq/stand
Simon J. Gerraty 53f151f906 Fix pkgfs stat so it satisfies libsecureboot
We need a valid st_dev, st_ino and st_mtime
to correctly track which files have been verified
and to update our notion of time.

ve_utc_set(): ignore utc if it would jump our current time
by more than VE_UTC_MAX_JUMP (20 years).

Allow testing of install command via userboot.
Need to fix its stat implementation too.

bhyveload also needs stat fixed - due to change to userboot.h

Call ve_error_get() from vectx_close() when hash is wrong.

Track the names of files we have hashed into pcr

For the purposes of measured boot, it is important
to be able to reproduce the hash reflected in
loader.ve.pcr
so loader.ve.hashed provides a list of names in the order they
were added.

Reviewed by:	imp
MFC after:	1 week
Sponsored by:	Juniper Networks
Differential Revision:	https://reviews.freebsd.org//D24027
2020-03-25 19:12:19 +00:00
..
arm Remove NAND and NANDFS support 2019-06-25 04:50:09 +00:00
arm64 No need to make objects here. 2018-04-27 22:15:18 +00:00
common Fix pkgfs stat so it satisfies libsecureboot 2020-03-25 19:12:19 +00:00
defaults Enable lualoader's kernel autodetection, disabled on install media 2018-10-11 17:17:54 +00:00
efi loader: remove libsa/crc32.c and use version from zlib 2020-03-19 21:05:11 +00:00
fdt stand/fdt: Scale blob size better as overlays apply 2020-01-09 04:34:42 +00:00
ficl veloader use vectx API for kernel and modules 2020-03-09 16:02:54 +00:00
ficl32 Enable veriexec for loader 2019-02-26 06:22:10 +00:00
forth loader_4th: menu items need to reset color attribute, not switch to white 2019-09-22 16:10:25 +00:00
i386 loader: remove libsa/crc32.c and use version from zlib 2020-03-19 21:05:11 +00:00
kshim A more definitions to kernel emulation shim in order to build stand/usb. 2018-02-07 18:50:36 +00:00
liblua veloader use vectx API for kernel and modules 2020-03-09 15:48:53 +00:00
liblua32 Add Lua as a scripting langauge to /boot/loader 2018-02-12 15:31:53 +00:00
libofw veloader use vectx API for kernel and modules 2020-03-08 17:42:42 +00:00
libsa Fix pkgfs stat so it satisfies libsecureboot 2020-03-25 19:12:19 +00:00
libsa32 Enable veriexec for loader 2019-02-26 06:22:10 +00:00
lua Fixup line lost from previous commit (r359072) 2020-03-18 17:01:03 +00:00
man Remove sparc64 support from the boot loader. 2020-02-03 17:34:57 +00:00
mips veloader use vectx API for kernel and modules 2020-03-08 17:42:42 +00:00
powerpc veloader use vectx API for kernel and modules 2020-03-08 17:42:42 +00:00
uboot loader: remove libsa/crc32.c and use version from zlib 2020-03-19 21:05:11 +00:00
usb Fix build of stand/usb . 2020-01-23 10:40:34 +00:00
userboot Fix pkgfs stat so it satisfies libsecureboot 2020-03-25 19:12:19 +00:00
defs.mk Move stand/ofw/libofw to stand/libofw. 2020-01-02 04:34:22 +00:00
fdt.mk
ficl.mk ficl pfopen: verify file 2019-05-24 19:43:38 +00:00
loader.mk loader: remove libsa/crc32.c and use version from zlib 2020-03-19 21:05:11 +00:00
lua.mk Do not include float interfaces when using libsa. 2018-02-23 04:04:25 +00:00
Makefile Move stand/ofw/libofw to stand/libofw. 2020-01-02 04:34:22 +00:00
Makefile.amd64 Create LOADER_UBOOT, and LOADER_OFW. Move these options out of 2018-03-01 19:50:55 +00:00
Makefile.inc Minor flags cleanup 2017-12-02 00:06:58 +00:00
uboot.mk Unify metadata load files for arm, mips, powerpc, sparc64 2018-02-13 03:44:50 +00:00