From 75174a5de9d5a3df585e43cee4c795f794cd5ab2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 25 Sep 2023 11:09:34 +0200 Subject: man: briefly document that we are now keeping an event log in userspace for out measurements --- man/systemd-pcrphase.service.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/man/systemd-pcrphase.service.xml b/man/systemd-pcrphase.service.xml index 807317a7de..fe7b58933b 100644 --- a/man/systemd-pcrphase.service.xml +++ b/man/systemd-pcrphase.service.xml @@ -204,6 +204,30 @@ + + Files + + + + /var/log/systemd/tpm2-measure.log + + Measurements are logged into an event log file maintained in + /var/log/systemd/tpm2-measure.log, which contains a JSON-SEQ series of objects that follow the + general structure of the TCG Common Event Log + Format (CEL-JSON) event objects (but lack the recnum + field). + + A LOCK_EX BSD file lock (flock2) on + the log file is acquired while the measurement is made and the file is updated. Thus, applications + that intend to acquire a consistent quote from the TPM with the associated snapshot of the event log + should acquire a LOCK_SH lock while doing so. + + + + See Also -- cgit v1.2.3