History log of /freebsd-head/stand/userboot/test/test.c
Revision Date Author Comments
59b95f1bfb0eded0d3bdd2900a649648619e6f58 25-Mar-2020 sjg <sjg@FreeBSD.org> 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
455dcd93bd3382bc9015d5b88f769363d4f00490 03-Nov-2019 tsoome <tsoome@FreeBSD.org> loader: userboot/test should accept more than one disk

allow to specify multiple -d options, test -d disk1 -d disk2 ..
72f4bed47694f787b5cde103da61d2edc31c4f64 24-Oct-2019 tsoome <tsoome@FreeBSD.org> userboot/test should use PRIx64 as one would expect from prefix 0x

Test is printing decimal value after prefix 0x.
1f7bf6a7f693be54ed9a55acdeafd89870191cdc 06-Dec-2017 imp <imp@FreeBSD.org> Make putenv and getenv match the userland definition of these
functions, tweak man page and one variable that shouldn't be const
anymore.

Sponsored by: Netflix
091ce9badd00b9c0d6dd6aa52bc594fffa06bc67 24-Nov-2017 hselasky <hselasky@FreeBSD.org> Merge ^/head r326132 through r326161.
291ce17bc80d960492595c2b9c13c287b6353062 24-Nov-2017 imp <imp@FreeBSD.org> Mark the func pointer as __dead2. It looks up loader_main, which
either aborts or exits, but never returns. Tag it as a non-returning
function rather than supply a bogus return(0) at the end of main.

CID: 1382885
Sponsored by: Netflix
433bd38e3a0349f9f89f9d54594172c75b002b74 14-Nov-2017 imp <imp@FreeBSD.org> Move sys/boot to stand. Fix all references to new location

Sponsored by: Netflix