From: Lennart Poettering Date: Mon, 25 Sep 2023 09:09:34 +0000 (+0200) Subject: man: briefly document that we are now keeping an event log in userspace for out measu... X-Git-Tag: v255-rc1~441^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F29301%2Fhead;p=thirdparty%2Fsystemd.git man: briefly document that we are now keeping an event log in userspace for out measurements --- diff --git a/man/systemd-pcrphase.service.xml b/man/systemd-pcrphase.service.xml index 807317a7de7..fe7b58933bf 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