Skip to content

eBPF-based security platform

Documentation: report an unbound register as degraded

Daniel Borkmann251d61d6d0ea
diff --git a/Documentation/architecture.rst b/Documentation/architecture.rst
index 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, so
an operator predicts its value from the certificate and the installed
set alone (``shirudo attest predict``); no history is needed. If any
re-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 on
record and leaves it alone; one that finds the recorded register gone
refuses ``tampered`` until the next TPM reset.
diff --git a/Documentation/key-lifecycle.rst b/Documentation/key-lifecycle.rst
index 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``. An
archive 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 the
archive is cleaned up. Revocation purges what the revoked key
signed for that reason; a key that merely disappears from the set
does not.
diff --git a/Documentation/operations.rst b/Documentation/operations.rst
index 8f589447..0fcb5c67 100644
--- a/Documentation/operations.rst
+++ b/Documentation/operations.rst
@@ -107,8 +107,7 @@ Conditions
shirudo 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 kernel
generation fails its load with ``btf_mismatch`` or
``verifier_rejected``; boot-restore is all or nothing, so one such
upatch 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 the
tree 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 the
eventlog, 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: a
boot-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.