heads/modules
Thierry Laurion 6923fb5e20
Addition of qemu-(fb)whiptail-tpm2(-hotp) boards
-coreboot support of TPM v2.0 (shared config for TPM2 support across all 4 previous variations)
-swtpm set to be launched under TPM v2.0 mode under board config
-Documentation file under each board.md softlinks to qemu-coreboot-fbwhiptail-tpm1.md (which has been generalized)
This is skeleton for TPM v2 integration under Heads

-------------
WiP

TODO:
- libcurl cannot be built as a tpm2-tools dependency as of now not sure why. curl currently needs to be added in board config to be built
- Note: tpm-reset (master and here) needs some review, no handle of no tpm use case. Caller is responsible to not call it otherwise does nothing
- init tries to bind fd and fails currently
- Note: Check if whiptail is different of fbwhiptail in clearing screen. As of now every clear seems to be removed, still whiptail clears previous console output
- When no OS' /boot can be mounted, do not try to TPM reset (will fail)

- seal-hotpkey is not working properly
- setting disk unlock key asks for TPM ownership passphrase (sealing in NV requires ownership, but text is misleading user as if reowning TPM)
  - We should cache input, feed tpm behind the scene and wipe passphrase and state clearly that this is TPM disk unlock kye passphrase.
- primary key from TPM2 is invalid most of the time from kexec-select-boot and verifying global hashes but is setuped correctly at disk unlock key setup
- would be nice to take advantage of bash function tracing to understand where we are for debugging purposes, code takes ash in consideration only
- tpmr says it implements nv calls but actually doesn't. Removing those falsely wrapped functions would help.
  - Implementing them would be better
- REVIEW TODOS IN CODE
- READD CIRCLECI CONFIG

Current state:
- TPM unseal works without disk unlock key and generates TOTP properly (was missing die condition at unseal to not produce always good TOTP even if invalid)
- TPM disk encryption key fails. Hypothesis is that sealing with USB drivers loaded and measures in inconsistent with sealed with/without.
 - TPM disk unsealing happens without USB modules being loaded in non-HOTP setup. This fails.

- Current tests are with fbwhiptail (no clear called so having traces on command line of what happens)
 - Testing with HOTP implementation for sealing/unsealing since that forces USB module loads on each boot to remove this from failing possibilities
2023-03-08 12:45:43 -05:00
..
bash Addition of qemu-(fb)whiptail-tpm2(-hotp) boards 2023-03-08 12:45:43 -05:00
busybox Support targeting PowerPC 64 2022-08-25 20:55:39 +03:00
cairo Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
coreboot modules/coreboot: Do not rebuild coreboot buildstack when built 2023-03-07 15:38:44 -05:00
coreboot-blobs reconfigure submodules if their config files ever change (issue #172) 2017-04-07 10:34:57 -04:00
cryptsetup Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
cryptsetup2 Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
curl Addition of qemu-(fb)whiptail-tpm2(-hotp) boards 2023-03-08 12:45:43 -05:00
dropbear Support targeting PowerPC 64 2022-08-25 20:55:39 +03:00
fbwhiptail fbwhiptail: Fix module to specific git commit vs master (#856) 2020-10-16 22:43:56 -04:00
flashrom Add flashrom to Talos II boards 2022-11-11 00:59:12 +02:00
flashtools Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
frotz adventure module 2018-02-05 11:30:39 -05:00
gpg Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
gpg2 Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
hidapi Rename libremkey-hotp-verification module 2020-06-11 15:54:10 +02:00
hotp-verification modules/hotp-verification: source libusb headers from Makefile DESTDIR 2023-01-18 12:41:54 -05:00
json-c make cryptsetup1/cryptsetup2 optional 2021-01-30 07:28:28 +02:00
kexec Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
libassuan Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
libgcrypt Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
libgpg-error Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
libhidapi-libusb Support targeting PowerPC 64 2022-08-25 20:55:39 +03:00
libksba Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
libnitrokey add x230-nkstorecli board config (#817) 2020-10-19 10:47:22 -04:00
libpng Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
libusb Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
libusb-compat Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
linux Addition of qemu-(fb)whiptail-tpm2(-hotp) boards 2023-03-08 12:45:43 -05:00
linuxboot modules/linuxboot: $$CPUS --> $(CPUS) 2020-12-26 12:19:10 -08:00
lvm2 Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
mbedtls Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
msrtools modules: update to use full commit id 2020-01-16 09:30:48 -08:00
musl-cross modules/musl-cross: use echo from the PATH to support NixOS 2023-01-18 12:42:41 -05:00
newt Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
nkstorecli add x230-nkstorecli board config (#817) 2020-10-19 10:47:22 -04:00
npth Support targeting PowerPC 64 2022-08-25 20:55:39 +03:00
openssl Addition of qemu-(fb)whiptail-tpm2(-hotp) boards 2023-03-08 12:45:43 -05:00
pciutils Support targeting PowerPC 64 2022-08-25 20:55:39 +03:00
pinentry Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
pixman Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
popt Support targeting PowerPC 64 2022-08-25 20:55:39 +03:00
purism-blobs modules/purism-blobs: update to current HEAD 2021-12-20 22:13:36 -05:00
qrencode Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
slang Support targeting PowerPC 64 2022-08-25 20:55:39 +03:00
tpm2-tools Addition of qemu-(fb)whiptail-tpm2(-hotp) boards 2023-03-08 12:45:43 -05:00
tpm2-tss Addition of qemu-(fb)whiptail-tpm2(-hotp) boards 2023-03-08 12:45:43 -05:00
tpmtotp Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
u-root parallel make fixes and hacks, which seem to work and reduce excessive remaking (issue #394) 2018-05-02 11:38:39 -04:00
util-linux Pass -O3 and -O2 (optimize for speed) to -Os (Optimize for space) 2023-03-07 18:05:39 -05:00
zlib Fix current builds 2022-04-01 09:47:39 -04:00