eBPF-based security platform
docs: say when init and a tree operation check eventlog.max_bytes
Daniel Borkmann7fdca5986ce5
diff --git a/Documentation/internals/measurement-register.rst b/Documentation/internals/measurement-register.rstindex 4e930409..8a4b155d 100644--- a/Documentation/internals/measurement-register.rst+++ b/Documentation/internals/measurement-register.rst@@ -275,9 +275,12 @@ twice.record on. Replaying those lines from 32 zero bytes must reproduce thelive register. Readers load the whole log and the pending record intomemory and refuse a total above 8 MiB. ``eventlog.max_bytes`` in the-config image, unlimited by default, makes ``init``, ``upatch load`` and-``upatch unload`` refuse with ``eventlog_full`` before they load anything-or touch the TPM; revocations and tree operations do not check it.+config image, unlimited by default, makes ``upatch load`` and ``upatch+unload``, and the installs and removals of ``bpm`` and of a tree+operation, refuse with ``eventlog_full`` before they load anything or+touch the TPM. ``init`` checks it only when it binds the register, after+it has extended the config PCR and restored the archived upatches. The+``key_revoke`` and ``tree_op`` events do not check it.Lock between extend and append------------------------------diff --git a/Documentation/security/threat-model.rst b/Documentation/security/threat-model.rstindex 39404d3b..b9361947 100644--- a/Documentation/security/threat-model.rst+++ b/Documentation/security/threat-model.rst@@ -1063,7 +1063,8 @@ recorded is gone or replaced it refuses ``tampered``. Which recordcounts as this boot's depends on what the caller sees (U9). A load oran unload refuses ``eventlog_full`` before it touches the TPM when thelog would exceed ``eventlog.max_bytes``, and ``init`` checks the limit-before it binds. Tree operations and revocations do not check it (U6).+before it binds. The ``tree_op`` and ``key_revoke`` events do not check+it (U6).``upatch load`` and ``upatch unload`` given ``--expect-chain`` compareit with the register before acting. The comparison is not atomic withthe extend and does not serialize concurrent commands, and package and@@ -1883,8 +1884,8 @@ U6 The eventlog becomes unreadable at 8 MiB:Affects: Every reader of the eventlog: replay, ``shirudo status``,``shirudo attest`` and ``init``.:Consequence: The readers stop at 8 MiB, ``eventlog.max_bytes`` has- no default, the log is never rotated, and tree operations and- revocations do not check the limit. Root can grow the log by+ no default, the log is never rotated, and the ``tree_op`` and+ ``key_revoke`` events do not check the limit. Root can grow the log byapplying published load and unload pairs. Past 8 MiB, status,replay and attestation fail across reboots. With a limit set,measuring commands and ``init`` refuse ``eventlog_full`` instead.