!agkXCfUrgbadYlQXRj:kack.it

NixOS + TPMs

168 Members
42 Servers

Load older messages


SenderMessageTime
18 Sep 2023
@raitobezarius:matrix.orgraitobezariusIt makes more sense to wait for someone who have expert knowledge rather than rush and package something that's meh in terms of security for such a piece of software07:53:23
21 Sep 2023
@dedmunwalk:matrix.orgdedmunwalk joined the room.23:06:14
23 Sep 2023
@elvishjerricco:matrix.orgElvishJerriccoThis isn't exactly NixOS, but I'm trying to test out Ubuntu's new TPM based FDE in a libvirt VM, but the TPM entered DA lockout mode during installation, and I'm not sure how to get it out of it. When my Steam Deck entered lockout, I just had to wait 15mins, but no amount of waiting (up to several hours) has helped here.06:18:21
@elvishjerricco:matrix.orgElvishJerricco

oh, well deleting the VM and starting anew, the installation failure isn't what I thought: cannot seal the encryption keys: cannot add EFI secure boot policy profile: cannot compute secure boot policy profile: the current boot was preceeded by a boot attempt to an EFI application that returned to the boot manager, without a reboot in between

(I enrolled MS secure boot keys with sbctl from a nixos ISO, but there was a hard shutoff before booting into the ubuntu ISO)

07:19:43
@elvishjerricco:matrix.orgElvishJerricco and after that installation failure, the swtpm is in lockout mode 07:20:20
@elvishjerricco:matrix.orgElvishJerriccoso I wonder if libvirt isn't shutting down swtpm correctly07:20:38
@snuupy:matrix.orgSnuupy joined the room.10:17:56
@elvishjerricco:matrix.orgElvishJerriccoHuh, apparently I had to make sure the installation disk was first in the boot order. Attempting and failing to boot the empty hard drive messed with the secure boot measurements or something19:51:37
24 Sep 2023
@flokli:matrix.orgflokliThis smells like a firmware issue/mistake a bunch of vendors initially did as well08:02:10
@flokli:matrix.orgfloklithe order of things tried out (and skipped over) shouldn't affect measurements, if it does, it's a bug in the firmware08:02:37
@raitobezarius:matrix.orgraitobezariusBut if elvish is trying this in a VM10:07:42
@raitobezarius:matrix.orgraitobezariusThis is OVMF10:07:44
@raitobezarius:matrix.orgraitobezariusSo kinda EDK210:07:51
@raitobezarius:matrix.orgraitobezariusSo all the firmware in the world10:07:55
@raitobezarius:matrix.orgraitobezariusI can pull out the code later10:08:19
@raitobezarius:matrix.orgraitobezariusI am used to read EDK2 now10:08:24
@elvishjerricco:matrix.orgElvishJerricco flokli: yea that's rough if OVMF has this bug :P 20:48:48
@flokli:matrix.orgfloklimaybe that22:07:33
@flokli:matrix.orgflokli * maybe that's why it's broken in all vendor firmwares ;-)22:07:41
@flokli:matrix.orgflokli * maybe that's why it is/was broken in all vendor firmwares ;-)22:07:50
25 Sep 2023
@bertof:matrix.orgbertof joined the room.10:43:50
@baloo_:matrix.orgbalooScream if you need us to send water or food down there18:17:21
@maka-mmparr77:matrix.orgmaka-77x joined the room.23:24:13
26 Sep 2023
@roosemberth:orbstheorem.ch@roosemberth:orbstheorem.chI was reading lanzaboote's readme: > An optimistic plan is to have a "in-tree" feature preview of Lanzaboote as part of NixOS 23.11. :D04:25:48
@roosemberth:orbstheorem.ch@roosemberth:orbstheorem.chAnywho, I would like to understand exactly what measurements go into what TPM registry and where it's implemented (firmware, lanzaboote-stub, kernel or anything really).04:28:59
28 Sep 2023
@elvishjerricco:matrix.orgElvishJerricco
In reply to @roosemberth:orbstheorem.ch
Anywho, I would like to understand exactly what measurements go into what TPM registry and where it's implemented (firmware, lanzaboote-stub, kernel or anything really).
https://uapi-group.org/specifications/specs/linux_tpm_pcr_registry/
06:23:40
@raitobezarius:matrix.orgraitobezarius

18:32 ▬▬▶ jakogut (~oftc-webi@172-223-248-144.res.spectrum.com) a rejoint #edk2
18:36 <jakogut> Hello, I'm working on a Linux-based OS integrating secure boot and disk encryption using the TPM to encrypt the LUKS passphrase. It's working with a NUC, but with QEMU and OVMF, the digest of PCR7 isn't matching what I expect. Strangely, it seems the TPM event log isn't created in securityfs in QEMU. Even stranger, booting an Arch ISO with the exact same QEMU config creates it just fine.
18:39 <jakogut> Reviewing the kernel logs, it seems the only difference is the line starting with "efi:" on the system with the working event log shows the address of TPMEventLog in addition to TPMFinalLog, whereas the non-working system shows only "TPMFinalLog".
18:40 <jakogut> Any ideas on what may be going wrong here? If I can get the TPM event log working on this QEMU system, it'll get me a lot closer to debugging the unexpected PCR hash.

19:49:16
@raitobezarius:matrix.orgraitobezariusvery fresh from #edk219:49:19
30 Sep 2023
@logimox:matrix.orgAndreas Fjärrwall joined the room.21:05:53
10 Oct 2023
@daniel:nopemail.orgdaniel joined the room.08:19:01

Show newer messages


Back to Room ListRoom Version: 6