]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: briefly document that we are now keeping an event log in userspace for out measu... 29301/head
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Sep 2023 09:09:34 +0000 (11:09 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Sep 2023 15:17:20 +0000 (17:17 +0200)
man/systemd-pcrphase.service.xml

index 807317a7de7a0aa75967e48210c54a125e7d230b..fe7b58933bffffeb2a204463a6f9fa276fd5ddc9 100644 (file)
     </variablelist>
   </refsect1>
 
+  <refsect1>
+    <title>Files</title>
+
+    <variablelist>
+      <varlistentry>
+        <term><filename>/var/log/systemd/tpm2-measure.log</filename></term>
+
+        <listitem><para>Measurements are logged into an event log file maintained in
+        <filename>/var/log/systemd/tpm2-measure.log</filename>, which contains a <ulink
+        url="https://www.rfc-editor.org/rfc/rfc7464.html">JSON-SEQ</ulink> series of objects that follow the
+        general structure of the <ulink
+        url="https://trustedcomputinggroup.org/resource/canonical-event-log-format/">TCG Common Event Log
+        Format (CEL-JSON)</ulink> event objects (but lack the <literal>recnum</literal>
+        field).</para>
+
+        <para>A <constant>LOCK_EX</constant> BSD file lock (<citerefentry
+        project='man-pages'><refentrytitle>flock</refentrytitle><manvolnum>2</manvolnum></citerefentry>) 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 <constant>LOCK_SH</constant> lock while doing so.</para></listitem>
+      </varlistentry>
+    </variablelist>
+  </refsect1>
+
   <refsect1>
     <title>See Also</title>
     <para>