eBPF-based security platform
Documentation: report an unbound register as degraded
Daniel Borkmann251d61d6d0ea
diff --git a/Documentation/architecture.rst b/Documentation/architecture.rstindex 2e420ae5..35a1e60e 100644--- a/Documentation/architecture.rst+++ b/Documentation/architecture.rst@@ -390,7 +390,7 @@ upatches it restores. The register starts from zero at every boot, soan operator predicts its value from the certificate and the installedset alone (``shirudo attest predict``); no history is needed. If anyre-apply fails the register is not written and ``status`` reports-``init-pending``. A re-run of ``init`` finds the register bound and on+``degraded``. A re-run of ``init`` finds the register bound and onrecord and leaves it alone; one that finds the recorded register gonerefuses ``tampered`` until the next TPM reset.diff --git a/Documentation/key-lifecycle.rst b/Documentation/key-lifecycle.rstindex 2e03b241..1fc7ba48 100644--- a/Documentation/key-lifecycle.rst+++ b/Documentation/key-lifecycle.rst@@ -141,7 +141,7 @@ Three facts shape every operation below:the archived upatches under ``/var/lib/shirudo/upatches``. Anarchive signed by a key the set no longer covers fails verification,the restore stops, and the target comes up with the LSM active but- nothing loaded and no register bound (``init-pending``) until the+ nothing loaded and no register bound (``degraded``) until thearchive is cleaned up. Revocation purges what the revoked keysigned for that reason; a key that merely disappears from the setdoes not.diff --git a/Documentation/operations.rst b/Documentation/operations.rstindex 8f589447..0fcb5c67 100644--- a/Documentation/operations.rst+++ b/Documentation/operations.rst@@ -107,8 +107,7 @@ Conditionsshirudo did not record.* - ``TpmMeasured``- ``WARN`` when no register is bound this boot- (``init-pending``) or no TPM answers; the detail says- which.+ (``degraded``) or no TPM answers; the detail says which.``keyring_serial`` and ``keyring_serial_pinned``The live keyring and the one frozen at ``init``; they match on a@@ -203,8 +202,8 @@ archived set on every boot, and a upatch built for another kernelgeneration fails its load with ``btf_mismatch`` or``verifier_rejected``; boot-restore is all or nothing, so one suchupatch leaves the target with the LSM up, nothing loaded and no-register bound (``TpmMeasured`` fails, ``status`` says-``init-pending``). Before rebooting into a new kernel generation,+register bound (``TpmMeasured`` warns, ``status`` says+``degraded``). Before rebooting into a new kernel generation,either uninstall the packages that do not cover it or make sure thetree the node follows has selectors that do: an operation whose``kernel_release_prefix`` or ``kernel_build_id`` no longer matches is@@ -289,10 +288,10 @@ reinstall time, and size the cap to the lifetime of the installation.restores a clean boot and the evidence of the bad one is in theeventlog, the journal and whatever the TPM certified before.-``init-pending`` and ``TpmMeasured`` failing+``degraded`` and ``TpmMeasured`` warning``init`` attached the LSM but did not bind the register: aboot-restore failure (section 4) or a TPM that could not be- reached. The journal of ``shirudo-initrd.service`` or+ reached, which the ``TpmMeasured`` detail tells apart. The journal of ``shirudo-initrd.service`` or``shirudo.service`` names the step. Fix the cause and re-run``shirudo init``; it is idempotent and completes what it can.