eBPF-based security platform
Documentation: end bullets that are not sentences without a period
Daniel Borkmann4895b2d01a15
diff --git a/Documentation/concepts/background/boot.rst b/Documentation/concepts/background/boot.rstindex f1940d54..47ec36de 100644--- a/Documentation/concepts/background/boot.rst+++ b/Documentation/concepts/background/boot.rst@@ -275,10 +275,10 @@ LimitsRelated--------- :doc:`tpm` for PCRs, NV indices and the register binding.-- :doc:`initrd-dracut` for the initrd shirudo runs from.-- :doc:`/internals/boot-flow` for the initrd and root runs of ``init``.-- :doc:`/operate/boot-integration` to set up the boot of a target.+- :doc:`tpm` for PCRs, NV indices and the register binding+- :doc:`initrd-dracut` for the initrd shirudo runs from+- :doc:`/internals/boot-flow` for the initrd and root runs of ``init``+- :doc:`/operate/boot-integration` to set up the boot of a target- `TPM2 PCR Measurements Made by systemd<https://systemd.io/TPM2_PCR_MEASUREMENTS/>`__- `UAPI.7 Linux TPM PCR Registrydiff --git a/Documentation/concepts/background/luajit.rst b/Documentation/concepts/background/luajit.rstindex c5da1db8..4b05df9e 100644--- a/Documentation/concepts/background/luajit.rst+++ b/Documentation/concepts/background/luajit.rst@@ -175,8 +175,8 @@ lists the residual risks in :doc:`/security/threat-model`.Related--------- :doc:`/upatches/decoders` for writing a decoder.+- :doc:`/upatches/decoders` for writing a decoder- :doc:`/upatches/maps-arenas-serializers` for the records a decoder- reads.-- :doc:`opentelemetry` for the records a decoder produces.-- :doc:`/security/threat-model` for the residual risks.+ reads+- :doc:`opentelemetry` for the records a decoder produces+- :doc:`/security/threat-model` for the residual risksdiff --git a/Documentation/concepts/background/opentelemetry.rst b/Documentation/concepts/background/opentelemetry.rstindex f316697e..c0d0d7bd 100644--- a/Documentation/concepts/background/opentelemetry.rst+++ b/Documentation/concepts/background/opentelemetry.rst@@ -199,8 +199,8 @@ target runs is the TPM-signed record that ``shirudo attest`` produces andRelated--------- :doc:`/operate/telemetry` to set up export on a target.-- :doc:`/reference/formats/otlp` for the exported documents.-- :doc:`/reference/systemd-units` for the timers and services.-- :doc:`luajit` for the decoder sandbox.-- :doc:`/upatches/decoders` for writing a decoder.+- :doc:`/operate/telemetry` to set up export on a target+- :doc:`/reference/formats/otlp` for the exported documents+- :doc:`/reference/systemd-units` for the timers and services+- :doc:`luajit` for the decoder sandbox+- :doc:`/upatches/decoders` for writing a decoderdiff --git a/Documentation/concepts/background/tpm.rst b/Documentation/concepts/background/tpm.rstindex 60ab63d0..f3606110 100644--- a/Documentation/concepts/background/tpm.rst+++ b/Documentation/concepts/background/tpm.rst@@ -524,10 +524,10 @@ these.Related--------- :doc:`boot` for measured boot, PCR 11 phases and NvPCRs.-- :doc:`/internals/measurement-register` for events and the :term:`eventlog`.-- :doc:`/operate/attest` to attest a :term:`target`.-- :doc:`/security/threat-model` for the residual risks.+- :doc:`boot` for measured boot, PCR 11 phases and NvPCRs+- :doc:`/internals/measurement-register` for events and the :term:`eventlog`+- :doc:`/operate/attest` to attest a :term:`target`+- :doc:`/security/threat-model` for the residual risks- `TPM 2.0 Library specification<https://trustedcomputinggroup.org/resource/tpm-library-specification/>`__- `TCG EK Credential Profilediff --git a/Documentation/concepts/measurement-register.rst b/Documentation/concepts/measurement-register.rstindex 18654f51..6ba4314c 100644--- a/Documentation/concepts/measurement-register.rst+++ b/Documentation/concepts/measurement-register.rst@@ -240,8 +240,8 @@ Related-------- :doc:`/internals/measurement-register` for the policy, the binding and- the evidence format.-- :doc:`/operate/attest` for enrolling and verifying targets.+ the evidence format+- :doc:`/operate/attest` for enrolling and verifying targets- :doc:`/security/threat-model` for the residual risks of the- measurement.-- :doc:`/concepts/background/boot` for PCRs 9 and 11 in a measured boot.+ measurement+- :doc:`/concepts/background/boot` for PCRs 9 and 11 in a measured bootdiff --git a/Documentation/concepts/operator-and-target.rst b/Documentation/concepts/operator-and-target.rstindex 3db367b5..5b995e89 100644--- a/Documentation/concepts/operator-and-target.rst+++ b/Documentation/concepts/operator-and-target.rst@@ -218,7 +218,7 @@ when.Related--------- :doc:`/start/how-it-works` for the path of one upatch between the roles.-- :doc:`/internals/architecture` for the components and their code.-- :doc:`/security/security-model` for the trust boundaries.-- :doc:`/reference/cli/index` for the commands of each role.+- :doc:`/start/how-it-works` for the path of one upatch between the roles+- :doc:`/internals/architecture` for the components and their code+- :doc:`/security/security-model` for the trust boundaries+- :doc:`/reference/cli/index` for the commands of each rolediff --git a/Documentation/concepts/upatches-and-packages.rst b/Documentation/concepts/upatches-and-packages.rstindex f8b712f6..1c08aa8e 100644--- a/Documentation/concepts/upatches-and-packages.rst+++ b/Documentation/concepts/upatches-and-packages.rst@@ -246,7 +246,7 @@ removes any upatch.Related--------- :doc:`/start/how-it-works` for the path of one upatch.-- :doc:`/upatches/concepts` for authoring upatches.-- :doc:`/concepts/measurement-register` for the events.-- :doc:`/internals/signed-loader` for the load in detail.+- :doc:`/start/how-it-works` for the path of one upatch+- :doc:`/upatches/concepts` for authoring upatches+- :doc:`/concepts/measurement-register` for the events+- :doc:`/internals/signed-loader` for the load in detaildiff --git a/Documentation/contribute/develop-locally.rst b/Documentation/contribute/develop-locally.rstindex d4a20de9..8409f5e9 100644--- a/Documentation/contribute/develop-locally.rst+++ b/Documentation/contribute/develop-locally.rst@@ -557,9 +557,9 @@ Clean upNext steps------------ :doc:`/upatches/decoders` for decoders and metrics.+- :doc:`/upatches/decoders` for decoders and metrics- :doc:`/upatches/maps-arenas-serializers` for upatches that keep- records.+ records- :doc:`/operate/deliver-packages` and :doc:`/operate/telemetry` for the- production setup this page reproduces.-- :doc:`testing` to write and run tests.+ production setup this page reproduces+- :doc:`testing` to write and run testsdiff --git a/Documentation/contribute/developer-guide.rst b/Documentation/contribute/developer-guide.rstindex 348f4e41..ebf44da8 100644--- a/Documentation/contribute/developer-guide.rst+++ b/Documentation/contribute/developer-guide.rst@@ -471,8 +471,8 @@ Next steps----------- :doc:`develop-locally` to run both roles on one machine and change- shirudo end to end.-- :doc:`testing` to run and write tests.-- :doc:`contributing` for the commit message and the sign-off.-- :doc:`coding-style` for the C code.-- :doc:`/reference/cli/index` for the commands.+ shirudo end to end+- :doc:`testing` to run and write tests+- :doc:`contributing` for the commit message and the sign-off+- :doc:`coding-style` for the C code+- :doc:`/reference/cli/index` for the commandsdiff --git a/Documentation/contribute/test-coverage.rst b/Documentation/contribute/test-coverage.rstindex 3792874e..dc4a394a 100644--- a/Documentation/contribute/test-coverage.rst+++ b/Documentation/contribute/test-coverage.rst@@ -807,6 +807,6 @@ Parsers and unitsRelated--------- :doc:`testing` to run the tests and write one.-- :doc:`/security/threat-model` for the threats and residual risks.-- :doc:`/security/tamper-counters` for what each counter means.+- :doc:`testing` to run the tests and write one+- :doc:`/security/threat-model` for the threats and residual risks+- :doc:`/security/tamper-counters` for what each counter meansdiff --git a/Documentation/contribute/testing.rst b/Documentation/contribute/testing.rstindex 10451b2b..a6234d71 100644--- a/Documentation/contribute/testing.rst+++ b/Documentation/contribute/testing.rst@@ -641,6 +641,6 @@ Next steps----------- :doc:`test-coverage` for what each family covers and what no test- covers.-- :doc:`/upatches/testing` to test a upatch on a target.-- :doc:`contributing` before you send the change.+ covers+- :doc:`/upatches/testing` to test a upatch on a target+- :doc:`contributing` before you send the changediff --git a/Documentation/contribute/writing-docs.rst b/Documentation/contribute/writing-docs.rstindex f7ae1818..ef6b0739 100644--- a/Documentation/contribute/writing-docs.rst+++ b/Documentation/contribute/writing-docs.rst@@ -149,6 +149,10 @@ Wordsbelong in commit messages, not in the documentation.- Prefer short sentences with one idea each. Do not chain clauses withsemicolons in procedures and reference pages.+- End a list item with a period only when it is a sentence. Link lists,+ noun phrases and short "Label: value" items end without one. If any+ item of a list is a sentence, or a label followed by a paragraph, end+ every item of that list with a period.- Leave out filler words such as "simply", "just", "easily", "obviously"and "please", and Latin abbreviations such as "e.g.", "i.e." and "etc.".- Do not use italics or bold for emphasis. Write the sentence so the@@ -235,5 +239,5 @@ tests and units a page names exist in the tree.Related--------- :doc:`contributing` for commit messages and the sign-off.-- :doc:`coding-style` for the C code.+- :doc:`contributing` for commit messages and the sign-off+- :doc:`coding-style` for the C codediff --git a/Documentation/index.rst b/Documentation/index.rstindex 6643018f..caad3773 100644--- a/Documentation/index.rst+++ b/Documentation/index.rst@@ -110,22 +110,22 @@ documentation uses BPF throughout, the term the Linux kernel communityuses.- :doc:`start/index`: build shirudo, boot a protected test target and take- one upatch through its whole life, then install it.+ one upatch through its whole life, then install it- :doc:`concepts/index`: the mechanisms shirudo builds on, from BPF signingand the BPF LSM to dm-verity, TPM 2.0 and post-quantum cryptography, and- a glossary.+ a glossary- :doc:`operate/index`: system requirements, deployment, attestation,monitoring, upgrades, troubleshooting and incident response for targets- in production.-- :doc:`upatches/index`: write, test, package and publish upatches.+ in production+- :doc:`upatches/index`: write, test, package and publish upatches- :doc:`security/index`: the security model, the threat model and the- threats still to resolve, cryptography and tamper counters.+ threats still to resolve, cryptography and tamper counters- :doc:`internals/index`: how shirudo works inside the kernel and on the- target, and why it is built this way.+ target, and why it is built this way- :doc:`reference/index`: every command, format, setting, event, failure- category, file and unit, and a cheat sheet.+ category, file and unit, and a cheat sheet- :doc:`contribute/index`: work on shirudo itself, its tests and its- documentation.+ documentation.. toctree:::hidden:diff --git a/Documentation/internals/boot-flow.rst b/Documentation/internals/boot-flow.rstindex ec86465d..eee5da8c 100644--- a/Documentation/internals/boot-flow.rst+++ b/Documentation/internals/boot-flow.rst@@ -215,9 +215,9 @@ Related-------- :doc:`/concepts/background/initrd-dracut` and- :doc:`/concepts/background/boot` for the boot chain.+ :doc:`/concepts/background/boot` for the boot chain- :doc:`/operate/boot-integration` for setting up the initrd and the- UKI.-- :doc:`config-images` for the images and the activation journal.+ UKI+- :doc:`config-images` for the images and the activation journal- :doc:`/security/threat-model` for what a failed or skipped ``init``- means for the trust model.+ means for the trust modeldiff --git a/Documentation/internals/config-images.rst b/Documentation/internals/config-images.rstindex 1fbc3255..29df1f6c 100644--- a/Documentation/internals/config-images.rst+++ b/Documentation/internals/config-images.rst@@ -301,8 +301,8 @@ These are properties of the design as implemented.Related--------- :doc:`/concepts/background/dm-verity` for the mechanism.+- :doc:`/concepts/background/dm-verity` for the mechanism- :doc:`/operate/boot-integration` for building the images and the- initrd.-- :doc:`/reference/cli/image` for the ``shirudo image`` commands.-- :doc:`/reference/formats/configuration` for the settings.+ initrd+- :doc:`/reference/cli/image` for the ``shirudo image`` commands+- :doc:`/reference/formats/configuration` for the settingsdiff --git a/Documentation/internals/design-decisions.rst b/Documentation/internals/design-decisions.rstindex e11fbeb9..9f1cc2f4 100644--- a/Documentation/internals/design-decisions.rst+++ b/Documentation/internals/design-decisions.rst@@ -219,5 +219,5 @@ release that contains its signed-loader work, with the patches inRelated--------- :doc:`architecture` for how the parts fit together.-- :doc:`/security/threat-model` for what the design defends against.+- :doc:`architecture` for how the parts fit together+- :doc:`/security/threat-model` for what the design defends againstdiff --git a/Documentation/internals/enforcement.rst b/Documentation/internals/enforcement.rstindex 864d80a1..25b411d2 100644--- a/Documentation/internals/enforcement.rst+++ b/Documentation/internals/enforcement.rst@@ -542,6 +542,6 @@ The hooks decide only what reaches them. These paths do not:Related--------- :doc:`/concepts/background/bpf-lsm` for how BPF LSM programs work.-- :doc:`signed-loader` for the load path these hooks guard.-- :doc:`/security/tamper-counters` for the counters.+- :doc:`/concepts/background/bpf-lsm` for how BPF LSM programs work+- :doc:`signed-loader` for the load path these hooks guard+- :doc:`/security/tamper-counters` for the countersdiff --git a/Documentation/internals/kernel-patches.rst b/Documentation/internals/kernel-patches.rstindex 76cad275..ccdd3e13 100644--- a/Documentation/internals/kernel-patches.rst+++ b/Documentation/internals/kernel-patches.rst@@ -135,5 +135,5 @@ Without itRelated--------- :doc:`kernel-interfaces` for the other kernel requirements.-- :doc:`/contribute/testing` for building and booting the test kernel.+- :doc:`kernel-interfaces` for the other kernel requirements+- :doc:`/contribute/testing` for building and booting the test kerneldiff --git a/Documentation/internals/measurement-register.rst b/Documentation/internals/measurement-register.rstindex 76f8a265..a39ca192 100644--- a/Documentation/internals/measurement-register.rst+++ b/Documentation/internals/measurement-register.rst@@ -50,17 +50,17 @@ build may change), holding one SHA-256 digest. Its attributes are``0x0E060048``:- ``TPM2_NT_EXTEND``: a write of ``d`` sets the index to- ``SHA256(old || d)``, as a PCR extend does.+ ``SHA256(old || d)``, as a PCR extend does- ``TPMA_NV_CLEAR_STCLEAR``: contents and ``TPMA_NV_WRITTEN`` clear atevery TPM reset and restart, so the register starts from 32 zero bytes- and holds the history of one TPM boot.+ and holds the history of one TPM boot- ``TPMA_NV_POLICYWRITE``: the only way to write is a policy session- that satisfies the write policy.+ that satisfies the write policy- ``TPMA_NV_OWNERREAD`` and ``TPMA_NV_AUTHREAD``: anyone can read and- certify it with an empty password.+ certify it with an empty password- ``TPMA_NV_NO_DA`` and ``TPMA_NV_ORDERLY``: failed authorizations donot count toward dictionary-attack lockout, and the TPM writes the- index back to NV memory only at an orderly shutdown.+ index back to NV memory only at an orderly shutdownThe index's TPM name is ``000b`` followed by the SHA-256 of its publicarea: handle, name algorithm, attributes, policy digest and size.@@ -436,7 +436,7 @@ Related-------- :doc:`/concepts/background/tpm` for TPM PCRs, NV indices and- sessions.-- :doc:`/concepts/measurement-register` for the concept.-- :doc:`/operate/attest` for attesting a target.-- :doc:`/reference/formats/eventlog` for the eventlog format.+ sessions+- :doc:`/concepts/measurement-register` for the concept+- :doc:`/operate/attest` for attesting a target+- :doc:`/reference/formats/eventlog` for the eventlog formatdiff --git a/Documentation/internals/seal.rst b/Documentation/internals/seal.rstindex cdabf0c2..d71c0ce8 100644--- a/Documentation/internals/seal.rst+++ b/Documentation/internals/seal.rst@@ -257,6 +257,6 @@ Related-------- :doc:`/concepts/background/xattrs` for extended attributes and the- ``security.bpf.`` namespace.-- :doc:`enforcement` for every hook and its counter.-- :doc:`/security/tamper-counters` for the ``Seal*`` counters.+ ``security.bpf.`` namespace+- :doc:`enforcement` for every hook and its counter+- :doc:`/security/tamper-counters` for the ``Seal*`` countersdiff --git a/Documentation/internals/signed-loader.rst b/Documentation/internals/signed-loader.rstindex 2b9e1de8..af724500 100644--- a/Documentation/internals/signed-loader.rst+++ b/Documentation/internals/signed-loader.rst@@ -250,7 +250,7 @@ Related-------- :doc:`/concepts/background/bpf-signing` for the kernel's signed BPF- support.-- :doc:`enforcement` for every hook and counter.-- :doc:`kernel-interfaces` for the exact ``bpf()`` attributes.-- :doc:`/reference/formats/upatch-format` for the container.+ support+- :doc:`enforcement` for every hook and counter+- :doc:`kernel-interfaces` for the exact ``bpf()`` attributes+- :doc:`/reference/formats/upatch-format` for the containerdiff --git a/Documentation/operate/attest.rst b/Documentation/operate/attest.rstindex 88451b14..a1e8d09c 100644--- a/Documentation/operate/attest.rst+++ b/Documentation/operate/attest.rst@@ -391,10 +391,10 @@ Next steps----------- :doc:`/operate/incident-tampered` when a target refuses with- ``tampered`` or fails verification.+ ``tampered`` or fails verification- :doc:`/reference/cli/attest`, :doc:`/reference/cli/attest-verify`,:doc:`/reference/cli/attest-predict` and- :doc:`/reference/cli/attest-challenge` for every option.+ :doc:`/reference/cli/attest-challenge` for every option- :doc:`/concepts/measurement-register` and- :doc:`/internals/measurement-register` for what the register records.-- :doc:`/security/threat-model` for what attestation does not cover.+ :doc:`/internals/measurement-register` for what the register records+- :doc:`/security/threat-model` for what attestation does not coverdiff --git a/Documentation/operate/backup-recovery.rst b/Documentation/operate/backup-recovery.rstindex b3b6e238..2e2deaf2 100644--- a/Documentation/operate/backup-recovery.rst+++ b/Documentation/operate/backup-recovery.rst@@ -222,11 +222,11 @@ what it already loaded.``init`` restores the same archive at every boot, so a reboot fails thesame way. These do not work:-- A second ``init``: it refuses the pending activation.+- A second ``init``: it refuses the pending activation- ``shirudo bpm uninstall`` and ``shirudo upatch unload``: every command- that reads target state is refused, except ``status`` and ``image``.+ that reads target state is refused, except ``status`` and ``image``- Deleting the file from ``/var/lib/shirudo/upatches``: the seal refuses- it.+ itWhat works is to remove the upatch from a boot on which it loads:@@ -358,7 +358,7 @@ tpm2-tools.Next steps------------ :doc:`troubleshooting` for messages by symptom.-- :doc:`incident-tampered` when ``status`` reports ``tampered``.-- :doc:`upgrade` to change the kernel without stranding an upatch.-- :doc:`/reference/files` for every file shirudo keeps.+- :doc:`troubleshooting` for messages by symptom+- :doc:`incident-tampered` when ``status`` reports ``tampered``+- :doc:`upgrade` to change the kernel without stranding an upatch+- :doc:`/reference/files` for every file shirudo keepsdiff --git a/Documentation/operate/boot-integration.rst b/Documentation/operate/boot-integration.rstindex 5f9fe346..e58e42df 100644--- a/Documentation/operate/boot-integration.rst+++ b/Documentation/operate/boot-integration.rst@@ -484,7 +484,7 @@ Next steps----------- :doc:`/operate/initialize` to check init after every boot and handle- its failures.-- :doc:`/operate/attest` to enroll the target's attestation key.-- :doc:`/operate/deliver-packages` to deliver upatches from a registry.-- :doc:`/operate/upgrade` to replace the runtime image or the kernel.+ its failures+- :doc:`/operate/attest` to enroll the target's attestation key+- :doc:`/operate/deliver-packages` to deliver upatches from a registry+- :doc:`/operate/upgrade` to replace the runtime image or the kerneldiff --git a/Documentation/operate/bug-report.rst b/Documentation/operate/bug-report.rstindex 38a3d542..6f79ce7e 100644--- a/Documentation/operate/bug-report.rst+++ b/Documentation/operate/bug-report.rst@@ -229,8 +229,8 @@ cleaned copy.Next steps------------ :doc:`/operate/troubleshooting` for known symptoms and their causes.+- :doc:`/operate/troubleshooting` for known symptoms and their causes- :doc:`/reference/failure-categories` for the category and phase in a- report.+ report- :doc:`/operate/interoperability` when the problem involves other- software on the target.+ software on the targetdiff --git a/Documentation/operate/deliver-packages.rst b/Documentation/operate/deliver-packages.rstindex ae1d0091..8cc5327e 100644--- a/Documentation/operate/deliver-packages.rst+++ b/Documentation/operate/deliver-packages.rst@@ -406,10 +406,10 @@ that state.Next steps------------ :doc:`/start/guides/publish-package` to publish a package.+- :doc:`/start/guides/publish-package` to publish a package- :doc:`/upatches/publishing` for packages, indexes and the tree on the- operator side.-- :doc:`telemetry` to export what the installed upatches collect.-- :doc:`/reference/cli/bpm` for every ``bpm`` option.+ operator side+- :doc:`telemetry` to export what the installed upatches collect+- :doc:`/reference/cli/bpm` for every ``bpm`` option- :doc:`/reference/formats/bpm-formats` for the index, package and tree- formats.+ formatsdiff --git a/Documentation/operate/hardening.rst b/Documentation/operate/hardening.rstindex 1be9873b..b0b578e0 100644--- a/Documentation/operate/hardening.rst+++ b/Documentation/operate/hardening.rst@@ -17,11 +17,11 @@ and says for each item whether shirudo checks it.The ``Checked`` column reads:-- ``init fails``: init refuses to bring enforcement up without it.-- ``warns``: init logs a warning and continues.-- ``enforced``: shirudo's LSM programs enforce it themselves.+- ``init fails``: init refuses to bring enforcement up without it+- ``warns``: init logs a warning and continues+- ``enforced``: shirudo's LSM programs enforce it themselves- ``no``: nothing in shirudo checks it. Only your build, your boot chain- or attestation catch a target without it.+ or attestation catch a target without it:doc:`/security/threat-model` explains the threats behind each item.@@ -237,9 +237,9 @@ Host filesRelated--------- :doc:`/operate/system-requirements` for what shirudo needs to run.+- :doc:`/operate/system-requirements` for what shirudo needs to run- :doc:`/operate/boot-integration` for the UKI, the command line and the- config PCR.+ config PCR- :doc:`/operate/attest` for the checks that catch a target booted- without these items.-- :doc:`/security/threat-model` for the threats and residual risks.+ without these items+- :doc:`/security/threat-model` for the threats and residual risksdiff --git a/Documentation/operate/incident-tampered.rst b/Documentation/operate/incident-tampered.rstindex 101ce7e8..68fc9938 100644--- a/Documentation/operate/incident-tampered.rst+++ b/Documentation/operate/incident-tampered.rst@@ -213,8 +213,8 @@ The timers you stopped start again at boot when they are enabled.Related--------- :doc:`/operate/attest` for enrollment and the verification options.-- :doc:`/operate/read-status` for the verdicts and conditions.-- :doc:`/operate/troubleshooting` for the other failure messages.-- :doc:`/reference/failure-categories` for every category.-- :doc:`/security/threat-model` for what the measurement does not cover.+- :doc:`/operate/attest` for enrollment and the verification options+- :doc:`/operate/read-status` for the verdicts and conditions+- :doc:`/operate/troubleshooting` for the other failure messages+- :doc:`/reference/failure-categories` for every category+- :doc:`/security/threat-model` for what the measurement does not coverdiff --git a/Documentation/operate/initialize.rst b/Documentation/operate/initialize.rstindex b2d21008..664f9972 100644--- a/Documentation/operate/initialize.rst+++ b/Documentation/operate/initialize.rst@@ -280,6 +280,6 @@ Next steps----------- :doc:`/operate/read-status` for every section and verdict of the- status report.-- :doc:`/operate/troubleshooting` for refusals after init.-- :doc:`/operate/attest` to prove the boot to a remote verifier.+ status report+- :doc:`/operate/troubleshooting` for refusals after init+- :doc:`/operate/attest` to prove the boot to a remote verifierdiff --git a/Documentation/operate/keys.rst b/Documentation/operate/keys.rstindex 77d2c3d7..72fa71d9 100644--- a/Documentation/operate/keys.rst+++ b/Documentation/operate/keys.rst@@ -390,8 +390,8 @@ discusses the residual risks.Next steps------------ :doc:`/operate/attest` to enroll a target and verify evidence.-- :doc:`/operate/deliver-packages` for repositories and their keys.+- :doc:`/operate/attest` to enroll a target and verify evidence+- :doc:`/operate/deliver-packages` for repositories and their keys- :doc:`/reference/cli/keys` and :doc:`/reference/cli/image` for the- command options.-- :doc:`/security/cryptography` for the algorithms.+ command options+- :doc:`/security/cryptography` for the algorithmsdiff --git a/Documentation/operate/read-status.rst b/Documentation/operate/read-status.rstindex ac05d05a..2b1d3d52 100644--- a/Documentation/operate/read-status.rst+++ b/Documentation/operate/read-status.rst@@ -718,9 +718,9 @@ on a healthy target, ``shirudo status --json | jq -r .status`` printsNext steps------------ :doc:`/operate/attest` to have the TPM confirm what the report says.-- :doc:`/operate/incident-tampered` for a ``tampered`` verdict.+- :doc:`/operate/attest` to have the TPM confirm what the report says+- :doc:`/operate/incident-tampered` for a ``tampered`` verdict- :doc:`/operate/troubleshooting` for refused commands and failure- categories.-- :doc:`/operate/telemetry` to send the report to a collector.-- :doc:`/reference/cli/status` for every option.+ categories+- :doc:`/operate/telemetry` to send the report to a collector+- :doc:`/reference/cli/status` for every optiondiff --git a/Documentation/operate/telemetry.rst b/Documentation/operate/telemetry.rstindex 40268dae..49ff0288 100644--- a/Documentation/operate/telemetry.rst+++ b/Documentation/operate/telemetry.rst@@ -197,14 +197,14 @@ configuration. systemd reads them for both services fromThe target also reads these variables:- ``OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE`` and- ``OTEL_EXPORTER_OTLP_CLIENT_KEY`` for mutual TLS, both or neither.-- ``OTEL_EXPORTER_OTLP_COMPRESSION``: ``none`` or ``gzip``.+ ``OTEL_EXPORTER_OTLP_CLIENT_KEY`` for mutual TLS, both or neither+- ``OTEL_EXPORTER_OTLP_COMPRESSION``: ``none`` or ``gzip``- ``OTEL_EXPORTER_OTLP_TIMEOUT``: milliseconds per attempt, 1 to 120000,- default 10000.-- ``OTEL_EXPORTER_OTLP_PROTOCOL``: only ``http/json`` is accepted.+ default 10000+- ``OTEL_EXPORTER_OTLP_PROTOCOL``: only ``http/json`` is accepted- ``AWS_REGION`` or ``AWS_DEFAULT_REGION``, ``AWS_ACCESS_KEY_ID``,``AWS_SECRET_ACCESS_KEY``, ``AWS_SESSION_TOKEN``,- ``AWS_ENDPOINT_URL_S3`` and ``AWS_CA_BUNDLE`` for ``map_export.s3_uri``.+ ``AWS_ENDPOINT_URL_S3`` and ``AWS_CA_BUNDLE`` for ``map_export.s3_uri``Each ``OTEL_EXPORTER_OTLP_*`` variable also has a ``_LOGS_`` and a``_METRICS_`` form, which wins over the generic one for its signal.@@ -412,9 +412,9 @@ LimitsNext steps------------ :doc:`read-status` to read what the keepalive carries.-- :doc:`/reference/formats/otlp` for the records on the wire.-- :doc:`/upatches/decoders` to give a map a decoder.+- :doc:`read-status` to read what the keepalive carries+- :doc:`/reference/formats/otlp` for the records on the wire+- :doc:`/upatches/decoders` to give a map a decoder- :doc:`/reference/cli/upatch-map` and :doc:`/reference/cli/status` for- every option.-- :doc:`attest` for evidence that the target cannot forge.+ every option+- :doc:`attest` for evidence that the target cannot forgediff --git a/Documentation/operate/troubleshooting.rst b/Documentation/operate/troubleshooting.rstindex f0fd801b..b9e48012 100644--- a/Documentation/operate/troubleshooting.rst+++ b/Documentation/operate/troubleshooting.rst@@ -517,7 +517,7 @@ Next steps----------- :doc:`/reference/failure-categories` for every category and exit- status.+ status- :doc:`/operate/incident-tampered` for a ``tampered`` refusal or- verdict.-- :doc:`/operate/read-status` for the status report.+ verdict+- :doc:`/operate/read-status` for the status reportdiff --git a/Documentation/operate/upgrade.rst b/Documentation/operate/upgrade.rstindex 3eb48138..cda5b631 100644--- a/Documentation/operate/upgrade.rst+++ b/Documentation/operate/upgrade.rst@@ -300,6 +300,6 @@ upatch.Next steps------------ :doc:`/operate/initialize` for the checks after every boot.-- :doc:`/operate/attest` to update what verifiers expect.-- :doc:`/operate/backup-recovery` for the state to keep across upgrades.+- :doc:`/operate/initialize` for the checks after every boot+- :doc:`/operate/attest` to update what verifiers expect+- :doc:`/operate/backup-recovery` for the state to keep across upgradesdiff --git a/Documentation/reference/cli/attest-verify.rst b/Documentation/reference/cli/attest-verify.rstindex ca680314..7be645ed 100644--- a/Documentation/reference/cli/attest-verify.rst+++ b/Documentation/reference/cli/attest-verify.rst@@ -40,24 +40,24 @@ Description``verify`` prints one line per check, ``ok:``, ``FAIL:`` or ``note:``,followed by ``verdict: ok`` or ``verdict: FAIL``. It checks:-- the nonce, in the document, the quote and the register certification.+- the nonce, in the document, the quote and the register certification- the attestation key: restricted, fixed to its TPM, its name matching its- public area and, with ``--ak-name``, the pinned name.+ public area and, with ``--ak-name``, the pinned name- the endorsement key: its name and the TCG default template, and with``--ek-name`` the pinned name. With ``--expect-credential``, the- credential the target recovered.+ credential the target recovered- the quote and the register certification: signed by the attestation keyas an endorsement primary, covering the listed PCRs and index, of one- TPM reset.+ TPM reset- the config root history against the quoted config PCR, and with- ``--expect-config-root`` the approved root.+ ``--expect-config-root`` the approved root- the register's public area against the recorded PCR 9 and 11 binding,the init record of this TPM reset, the eventlog replay to the certified- value and the anchor in PCR 9.+ value and the anchor in PCR 9- the expected state: with ``--cert`` (and ``--upatch``, ``--expect``,``--tree-root``) the init event, and the events after boot, which failunless ``--allow-runtime-events``. With ``--expect-chain``, the register- value.+ valueWithout ``--ak-name``, ``verify`` warns that the signer is not pinned, anda document from any TPM passes the key checks. Without ``--cert`` ordiff --git a/Documentation/reference/cli/attest.rst b/Documentation/reference/cli/attest.rstindex a27928ac..39107726 100644--- a/Documentation/reference/cli/attest.rst+++ b/Documentation/reference/cli/attest.rst@@ -110,8 +110,8 @@ Files and environment---------------------- Reads the TPM, ``/var/lib/shirudo/eventlog``, the config activation- records and the firmware and systemd event logs.-- Writes ``--out``.+ records and the firmware and systemd event logs+- Writes ``--out``Examples--------diff --git a/Documentation/reference/cli/bpm.rst b/Documentation/reference/cli/bpm.rstindex c7084b60..6a355d9f 100644--- a/Documentation/reference/cli/bpm.rst+++ b/Documentation/reference/cli/bpm.rst@@ -358,15 +358,15 @@ Files and environment- ``/etc/shirudo/bpm/registries.d/``, ``/etc/shirudo/bpm/keys/``,``/etc/shirudo/bpm/upatch-tree.conf``, ``/etc/shirudo/node.labels``, or- the same paths in the config image.+ the same paths in the config image- ``/var/lib/shirudo/bpm/``: ``repos/``, ``packages/``, ``staging/``,``state.json`` and ``upatch-tree/``, and- ``/var/lib/shirudo/locks/bpm.lock``.+ ``/var/lib/shirudo/locks/bpm.lock``- Registry access: ``BPM_OCI_USERNAME`` and ``BPM_OCI_PASSWORD``,``BPM_OCI_BEARER_TOKEN``, ``REGISTRY_AUTH_FILE``, ``DOCKER_CONFIG`` and``~/.docker/config.json``, ``BPM_OCI_SCHEME`` (``https`` or ``http``),``BPM_OCI_CA_FILE``. The timer services read them from- ``/etc/shirudo/bpm/environment``. See :doc:`/reference/environment`.+ ``/etc/shirudo/bpm/environment``. See :doc:`/reference/environment`Examples--------diff --git a/Documentation/reference/cli/build.rst b/Documentation/reference/cli/build.rstindex 9753e058..69524ffa 100644--- a/Documentation/reference/cli/build.rst+++ b/Documentation/reference/cli/build.rst@@ -205,10 +205,10 @@ Files and environment---------------------- Reads the key and certificate, ``vmlinux.h``, and for ``--unload``- without a digest ``/var/lib/shirudo/upatches/<name>.upatch``.-- Writes the output, and ``/tmp/shirudo-build-*.bpf.o`` while it compiles.-- ``SHIRUDO_KEYS_DIR``: the default keys directory.-- ``SHIRUDO_BUILD``: the helper ``shirudo`` executes.+ without a digest ``/var/lib/shirudo/upatches/<name>.upatch``+- Writes the output, and ``/tmp/shirudo-build-*.bpf.o`` while it compiles+- ``SHIRUDO_KEYS_DIR``: the default keys directory+- ``SHIRUDO_BUILD``: the helper ``shirudo`` executesExamples--------diff --git a/Documentation/reference/cli/config.rst b/Documentation/reference/cli/config.rstindex c0ae905c..8d5ca2e5 100644--- a/Documentation/reference/cli/config.rst+++ b/Documentation/reference/cli/config.rst@@ -87,10 +87,10 @@ Files and environment---------------------- ``/etc/shirudo/shirudo.conf``-- ``/run/shirudo/config``: the active config image.+- ``/run/shirudo/config``: the active config image- ``SHIRUDO_TPM_OWNER_AUTH``, ``SHIRUDO_TPM_TCTI``: honored onlywithout an active config image. The image gate refuses both on an- enforcing target.+ enforcing targetExamples--------diff --git a/Documentation/reference/cli/gen-tools.rst b/Documentation/reference/cli/gen-tools.rstindex 2eaf75b8..7f8db644 100644--- a/Documentation/reference/cli/gen-tools.rst+++ b/Documentation/reference/cli/gen-tools.rst@@ -103,14 +103,14 @@ Builds the runtime image, the image whose root hash the bootstrapsettings pin. It holds:- ``usr/bin/shirudo``: ``--binary``, the target binary without its- symbols and debug sections, as ``llvm-strip`` writes it.-- ``etc/shirudo/shirudo.conf``: ``--bootstrap-conf``.-- ``keys/cert.der``: ``--cert``, the initial BPF signing certificate.+ symbols and debug sections, as ``llvm-strip`` writes it+- ``etc/shirudo/shirudo.conf``: ``--bootstrap-conf``+- ``keys/cert.der``: ``--cert``, the initial BPF signing certificate- ``etc/shirudo/config-cert.der``: ``--config-cert``, the certificate- that verifies config images.+ that verifies config images- for a dynamically linked binary, its ELF interpreter and libraries- under their own paths, found with ``ldd``.-- each ``--extra-binary`` under ``usr/bin/`` with its libraries.+ under their own paths, found with ``ldd``+- each ``--extra-binary`` under ``usr/bin/`` with its librariesIt prints the runtime invocation on standard error, for example``/run/shirudo/runtime/usr/bin/shirudo init`` for a static binary. Withdiff --git a/Documentation/reference/cli/genkey.rst b/Documentation/reference/cli/genkey.rstindex 13006764..8b02b45b 100644--- a/Documentation/reference/cli/genkey.rst+++ b/Documentation/reference/cli/genkey.rst@@ -35,9 +35,9 @@ Description``cert.der`` exists in the directory.#. It generates an ML-DSA-87 key and writes:- - ``<dir>/signing_key.pem``: the private key, PEM, mode 0600.+ - ``<dir>/signing_key.pem``: the private key, PEM, mode 0600- ``<dir>/cert.der``: a self-signed X.509 certificate, DER, mode 0600,- subject and issuer ``CN=shirudo``, valid for 3650 days.+ subject and issuer ``CN=shirudo``, valid for 3650 days#. It logs ``genkey: created shirudo ML-DSA-87 signing material at<dir>`` at audit priority.@@ -103,8 +103,8 @@ Files and environment- ``<dir>/signing_key.pem``, ``<dir>/cert.der``, and during ``--force````<dir>/signing_key.pem.new``, ``<dir>/cert.der.new`` and- ``<dir>/signing_key.pem.old``.-- ``SHIRUDO_KEYS_DIR``: the default directory.+ ``<dir>/signing_key.pem.old``+- ``SHIRUDO_KEYS_DIR``: the default directoryExamples--------diff --git a/Documentation/reference/cli/image.rst b/Documentation/reference/cli/image.rstindex fd8aafcb..02f3dcc4 100644--- a/Documentation/reference/cli/image.rst+++ b/Documentation/reference/cli/image.rst@@ -177,9 +177,9 @@ Files and environment- ``build``: the four output files and a temporary directory besidethem. ``SHIRUDO_KEYS_DIR`` and ``SHIRUDO_BUILD`` set the defaults of- ``shirudo-gen-verity``.+ ``shirudo-gen-verity``- ``update``: ``/var/lib/shirudo/images``, ``/var/lib/shirudo/config-update``,- ``/run/shirudo/config``, the config PCR and the register.+ ``/run/shirudo/config``, the config PCR and the registerExamples--------diff --git a/Documentation/reference/cli/keys.rst b/Documentation/reference/cli/keys.rstindex 748f00e6..26c52a67 100644--- a/Documentation/reference/cli/keys.rst+++ b/Documentation/reference/cli/keys.rst@@ -40,13 +40,13 @@ Display- the certificate ``cert.der`` and the signing key ``signing_key.pem`` inthe keys directory: subject, issuer, algorithm, both fingerprints and- validity.+ validity- the trusted set, when it has more than the primary certificate orholds revoked or unvouched entries: each member's SPKI fingerprint, the- SHA-256 of its certificate and the certificate that vouched for it.+ SHA-256 of its certificate and the certificate that vouched for it- the ``.bpf`` and ``.dm-verity`` keyrings ``init`` froze: each one'sserial, the frozen serial and every member, whatever its type, marked- ``(frozen)`` when ``init`` recorded it and ``(NOT frozen)`` otherwise.+ ``(frozen)`` when ``init`` recorded it and ``(NOT frozen)`` otherwiseThe keys directory is ``--keys-dir``, else ``$SHIRUDO_KEYS_DIR``, else``/var/lib/shirudo/keys``. On a target with an active config image it is@@ -173,10 +173,10 @@ Files and environment---------------------- ``<dir>/cert.der``, ``<dir>/signing_key.pem``, ``<dir>/trusted/``,- ``<dir>/revoked/``.-- ``/run/shirudo/runtime/keys`` on a target with a config image.+ ``<dir>/revoked/``+- ``/run/shirudo/runtime/keys`` on a target with a config image- ``SHIRUDO_KEYS_DIR``: the default keys directory, refused by the image- gate.+ gateExamples--------diff --git a/Documentation/reference/cli/shirudo.rst b/Documentation/reference/cli/shirudo.rstindex 37955b14..58d8e3a1 100644--- a/Documentation/reference/cli/shirudo.rst+++ b/Documentation/reference/cli/shirudo.rst@@ -231,9 +231,9 @@ from its output, not from the exit status. The failure categories thatFiles and environment----------------------- ``SHIRUDO_BUILD``: the helper to execute.-- ``PATH``: searched for ``shirudo-build`` last.-- ``/run/shirudo/bpffs/identity``: the identity pin the image gate reads.+- ``SHIRUDO_BUILD``: the helper to execute+- ``PATH``: searched for ``shirudo-build`` last+- ``/run/shirudo/bpffs/identity``: the identity pin the image gate reads:doc:`/reference/environment` and :doc:`/reference/files` list everyvariable and path.diff --git a/Documentation/reference/cli/status.rst b/Documentation/reference/cli/status.rstindex 131e8360..753e11df 100644--- a/Documentation/reference/cli/status.rst+++ b/Documentation/reference/cli/status.rst@@ -33,8 +33,8 @@ report. The roles come from what is present:- target: the certificate (:doc:`init` lists its path), the pinned LSMlink ``/run/shirudo/bpffs/lsm_link`` or the ``.bpf`` keyring that- ``init`` froze.-- operator: ``/var/lib/shirudo/keys/signing_key.pem``.+ ``init`` froze+- operator: ``/var/lib/shirudo/keys/signing_key.pem````Mode`` is ``production`` when the LSM link is pinned and ``inactive``otherwise. It says nothing about the keyring. The ``KeyringSealed``@@ -155,11 +155,11 @@ Files and environment``.bpf`` and ``.dm-verity`` keyrings, the TPM register,``/var/lib/shirudo/eventlog``, ``/var/lib/shirudo/keys``, the configcertificate the runtime image's bootstrap names and the config- activation records.+ activation records- With ``--otel``: ``map_export.*`` and the ``OTEL_EXPORTER_OTLP_*``variables (see :doc:`/reference/environment`).``shirudo-keepalive.service`` reads them from- ``/etc/shirudo/map-export.env``.+ ``/etc/shirudo/map-export.env``Examples--------diff --git a/Documentation/reference/cli/upatch-info.rst b/Documentation/reference/cli/upatch-info.rstindex 14d46297..e1bc3aec 100644--- a/Documentation/reference/cli/upatch-info.rst+++ b/Documentation/reference/cli/upatch-info.rst@@ -32,14 +32,14 @@ loads the artifact. For a loaded upatch as the kernel holds it, useThe human output has these parts:- the file, name, type (``LOAD`` or ``UNLOAD-directive``), payload type,- format version, payload digest and size.+ format version, payload digest and size- the loader: offset and length of its instructions, the log buffer- size, its metadata and its data.-- the signature: offset and length.+ size, its metadata and its data+- the signature: offset and length- the signed sections: the name, the length of the attach metadata and,- for a directive, the expected payload digest.+ for a directive, the expected payload digest- the decoders: target upatch and map, language and API version, input- format, export signal (``log`` or ``metric``) and source.+ format, export signal (``log`` or ``metric``) and source:doc:`/reference/formats/upatch-format` describes each field.diff --git a/Documentation/reference/cli/upatch-list.rst b/Documentation/reference/cli/upatch-list.rstindex e1c8e091..152ed5e9 100644--- a/Documentation/reference/cli/upatch-list.rst+++ b/Documentation/reference/cli/upatch-list.rst@@ -31,9 +31,9 @@ Description- one row per archived artifact, with ``loaded`` ``yes`` or ``no``, itstype (``load`` or ``unload``), its payload kind, the first 16- hexadecimal characters of its payload digest and its name.+ hexadecimal characters of its payload digest and its name- one row per pinned upatch without an archive copy, marked- ``(orphan: no persisted .upatch, will not survive reboot)``.+ ``(orphan: no persisted .upatch, will not survive reboot)``An archived artifact that cannot be read is listed as ``(unreadable)``.diff --git a/Documentation/reference/cli/upatch-load.rst b/Documentation/reference/cli/upatch-load.rstindex 64451a05..f2e696f3 100644--- a/Documentation/reference/cli/upatch-load.rst+++ b/Documentation/reference/cli/upatch-load.rst@@ -182,10 +182,10 @@ Files and environment---------------------- Reads the artifact, ``/var/lib/shirudo/eventlog`` and- ``eventlog.max_bytes``.+ ``eventlog.max_bytes``- Writes ``/run/shirudo/bpffs/upatches/<name>/``,``/var/lib/shirudo/upatches/<name>.upatch``, the eventlog and the- register.+ registerExamples--------diff --git a/Documentation/reference/cli/upatch-map.rst b/Documentation/reference/cli/upatch-map.rstindex 47b7dd41..3aae55f6 100644--- a/Documentation/reference/cli/upatch-map.rst+++ b/Documentation/reference/cli/upatch-map.rst@@ -161,11 +161,11 @@ Exit statusFiles and environment----------------------- Reads the pinned maps under ``/run/shirudo/bpffs/upatches/``.-- Appends to the ``--json`` or ``map_export.json_path`` file.+- Reads the pinned maps under ``/run/shirudo/bpffs/upatches/``+- Appends to the ``--json`` or ``map_export.json_path`` file- OTLP and S3: the ``OTEL_EXPORTER_OTLP_*`` and ``AWS_*`` variables (see:doc:`/reference/environment`). ``shirudo-map-export.service`` reads- them from ``/etc/shirudo/map-export.env``.+ them from ``/etc/shirudo/map-export.env``Examples--------diff --git a/Documentation/reference/cli/upatch-unload.rst b/Documentation/reference/cli/upatch-unload.rstindex 79107eb2..5d31a1af 100644--- a/Documentation/reference/cli/upatch-unload.rst+++ b/Documentation/reference/cli/upatch-unload.rst@@ -125,10 +125,10 @@ Files and environment- Reads the directive, the pin directory's``security.bpf.shirudo.payload`` attribute and- ``/var/lib/shirudo/eventlog``.+ ``/var/lib/shirudo/eventlog``- Removes ``/run/shirudo/bpffs/upatches/<name>/`` and``/var/lib/shirudo/upatches/<name>.upatch``. Extends the register and- appends to the eventlog.+ appends to the eventlogExamples--------diff --git a/Documentation/reference/environment.rst b/Documentation/reference/environment.rstindex 8737436f..f3bd3ac9 100644--- a/Documentation/reference/environment.rst+++ b/Documentation/reference/environment.rst@@ -284,8 +284,8 @@ Related-------- :doc:`/reference/systemd-units` for the units that read the- environment files.+ environment files- :doc:`/reference/formats/configuration` for the settings these- variables complement.+ variables complement- :doc:`/operate/telemetry` and :doc:`/operate/deliver-packages` for- setting up export and registry access.+ setting up export and registry accessdiff --git a/Documentation/reference/formats/configuration.rst b/Documentation/reference/formats/configuration.rstindex 9be9e0fe..8f79560e 100644--- a/Documentation/reference/formats/configuration.rst+++ b/Documentation/reference/formats/configuration.rst@@ -498,9 +498,9 @@ Related-------- :doc:`/reference/environment` for the variables that override or- complement these settings.-- :doc:`/reference/files` for every path shirudo reads and writes.+ complement these settings+- :doc:`/reference/files` for every path shirudo reads and writes- :doc:`/operate/boot-integration` for building the bootstrap files and- images.-- :doc:`/operate/telemetry` for the export destinations.-- :doc:`/operate/deliver-packages` for repositories and the upatch tree.+ images+- :doc:`/operate/telemetry` for the export destinations+- :doc:`/operate/deliver-packages` for repositories and the upatch treediff --git a/Documentation/reference/systemd-units.rst b/Documentation/reference/systemd-units.rstindex 5d3b7dbd..08667b65 100644--- a/Documentation/reference/systemd-units.rst+++ b/Documentation/reference/systemd-units.rst@@ -329,11 +329,11 @@ Related-------- :doc:`/reference/environment` for the variables the- ``EnvironmentFile=`` files set.+ ``EnvironmentFile=`` files set- :doc:`/reference/formats/configuration` for the settings the services- read.+ read- :doc:`/reference/cli/init`, :doc:`/reference/cli/status`,:doc:`/reference/cli/upatch-map` and :doc:`/reference/cli/bpm` for the- commands the services run.+ commands the services run- :doc:`/operate/boot-integration` for installing the units with the- runtime image.+ runtime imagediff --git a/Documentation/security/cryptography.rst b/Documentation/security/cryptography.rstindex 879e8e24..9e74f16b 100644--- a/Documentation/security/cryptography.rst+++ b/Documentation/security/cryptography.rst@@ -56,15 +56,15 @@ SignaturesAll five use one format, produced by one function on the operator:- Algorithm: ML-DSA-87 (FIPS 204). The signing code refuses any other- key, the smaller ML-DSA parameter sets included.+ key, the smaller ML-DSA parameter sets included- Container: a detached CMS ``SignedData`` with no certificates; the- signer is named by its subject key identifier.+ signer is named by its subject key identifier- With OpenSSL 3.x: signed attributes with a SHA-512 message digest andno signing time, because OpenSSL 3.x cannot sign ML-DSA withoutsigned attributes and the kernel accepts only SHA-512 for ML-DSA in- that form.+ that form- With OpenSSL 4: no signed attributes; ML-DSA signs the content- directly.+ directly``shirudo genkey`` creates the ML-DSA-87 key and a self-signed X.509certificate. ``shirudo keys vouch``, ``shirudo keys add`` and the image@@ -269,6 +269,6 @@ Key custodyRelated--------- :doc:`threat-model`, threats T5, T8 and T9 and residual risk R9.+- :doc:`threat-model`, threats T5, T8 and T9 and residual risk R9- :doc:`/concepts/background/bpf-signing` and- :doc:`/concepts/background/tpm` for the background.+ :doc:`/concepts/background/tpm` for the backgrounddiff --git a/Documentation/security/reporting.rst b/Documentation/security/reporting.rstindex 064051df..7d51cde5 100644--- a/Documentation/security/reporting.rst+++ b/Documentation/security/reporting.rst@@ -60,6 +60,6 @@ The repository's `security policyNext steps------------ :doc:`threat-model` for what shirudo protects and the known gaps.+- :doc:`threat-model` for what shirudo protects and the known gaps- :doc:`/contribute/contributing` if you send the fix yourself, after- the advisory is agreed.+ the advisory is agreeddiff --git a/Documentation/security/security-model.rst b/Documentation/security/security-model.rstindex 64bdaef9..0a894236 100644--- a/Documentation/security/security-model.rst+++ b/Documentation/security/security-model.rst@@ -94,17 +94,17 @@ The properties above hold only on a deployment that provides the:ref:`assumptions <tm-assumptions>`. In brief:- A trusted kernel with the BPF LSM, the signed-loader ABI and the- ``tpm_command`` patch.+ ``tpm_command`` patch- Module signature enforcement and lockdown in integrity mode, no32-bit compatibility, no hibernation and no writes under mounted- file systems.+ file systems- Secure Boot with a signed, measured UKI and an authenticated kernel- command line.+ command line- A kernel whose dm-verity trust path consults only keys trusted to- sign shirudo configs.-- A TPM 2.0 reachable only through the kernel driver.-- A runtime image without generic tools.-- An operator host that keeps the signing key safe.+ sign shirudo configs+- A TPM 2.0 reachable only through the kernel driver+- A runtime image without generic tools+- An operator host that keeps the signing key safeshirudo checks only some of these. The pre-flight of ``shirudo init``checks that the BPF LSM is active and that the kernel has the@@ -131,6 +131,6 @@ essentials:Related--------- :doc:`threat-model` for every mechanism, limit and open gap.-- :doc:`tamper-counters` for what the counters record.-- :doc:`cryptography` for the algorithms.+- :doc:`threat-model` for every mechanism, limit and open gap+- :doc:`tamper-counters` for what the counters record+- :doc:`cryptography` for the algorithmsdiff --git a/Documentation/security/tamper-counters.rst b/Documentation/security/tamper-counters.rstindex 1f4cbff4..ebd64074 100644--- a/Documentation/security/tamper-counters.rst+++ b/Documentation/security/tamper-counters.rst@@ -303,5 +303,5 @@ evidence. To act on a counter, see :doc:`/operate/incident-tampered`.Related--------- :doc:`threat-model`, threat T10, for the purpose and the limits.-- :doc:`/internals/enforcement` for the hooks.+- :doc:`threat-model`, threat T10, for the purpose and the limits+- :doc:`/internals/enforcement` for the hooksdiff --git a/Documentation/security/threat-model.rst b/Documentation/security/threat-model.rstindex 30a4fa9c..e57700e6 100644--- a/Documentation/security/threat-model.rst+++ b/Documentation/security/threat-model.rst@@ -50,15 +50,15 @@ Every entry has a stable ID that commits, issues and other pages cite:Each threat is explained in prose and then summarized in a fact box.The fields of the box are:-- Adversary: who mounts the threat.+- Adversary: who mounts the threat- Enforced at: the BPF LSM programs that refuse it, by their section- name in ``bpf/``.-- Refusal: what the caller sees.+ name in ``bpf/``+- Refusal: what the caller sees- Counters: the tamper counters the refusal moves, described in- :doc:`tamper-counters`.+ :doc:`tamper-counters`- Tests: the target tests under ``testing/functional/`` that exercise- the refusal.-- Residual: the residual risks and threats to resolve that bound it.+ the refusal+- Residual: the residual risks and threats to resolve that bound itA claim on this page is one of three kinds, and the text says which. Ahook in the kernel enforces it, shirudo checks it in userspace, or an@@ -1731,52 +1731,52 @@ The deployer:``CONFIG_SECURITY_LOCKDOWN_LSM`` (A4), ``CONFIG_COMPAT=n`` (A5), bothdm-verity keyring options off and no foreign built-in certificate(A7), the TPM driver without ``i2c-dev`` or ``spidev`` on its bus- (A8), and ``CONFIG_BLK_DEV_WRITE_MOUNTED=n`` (A10).+ (A8), and ``CONFIG_BLK_DEV_WRITE_MOUNTED=n`` (A10)- Boots a signed, measured UKI under Secure Boot whose command linecarries ``lsm=`` with ``bpf``, ``lockdown=integrity``,``bpf.keyring_unsealed=1`` and ``dm_verity.keyring_unsealed=1`` (A6,- A11).-- Keeps generic tools off the runtime image (A14).+ A11)+- Keeps generic tools off the runtime image (A14)- Keeps the environment files of the units absent or empty (U3) and- starts every shirudo unit from the runtime image (U7).+ starts every shirudo unit from the runtime image (U7)- Uses only ML-DSA-87 certificates from ``shirudo genkey``, repository- certificates included (U4).-- Treats the TPM owner password as known to root (R20).+ certificates included (U4)+- Treats the TPM owner password as known to root (R20)- Never runs ``shirudo bpm config update --base-package oci://...``without ``-f`` (U14), and checks the fingerprint of every certificate- it installs (U15).+ it installs (U15)- Watches the size of the eventlog (U6) and the keepalives, and treats a``tampered`` status as an incident to understand, not a condition to- retry (:doc:`/operate/incident-tampered`).+ retry (:doc:`/operate/incident-tampered`)The verifier:-- Uses a fresh, unique ``--nonce`` for each verification.+- Uses a fresh, unique ``--nonce`` for each verification- Records the attestation key name at enrollment after a challenge whoseendorsement key chains through ``--ek-ca`` or matches ``--ek-name``,- and passes ``--ak-name`` on every verification (U1, R10).+ and passes ``--ak-name`` on every verification (U1, R10)- Pins the binding with ``--expect-bind-pcr=9=<value>`` and- ``--expect-bind-pcr=11=<value>`` (U9, R7, R12).+ ``--expect-bind-pcr=11=<value>`` (U9, R7, R12)- Gives an expected state: ``--cert`` with ``--upatch`` or ``--expect``- and ``--tree-root``, or ``--expect-chain`` (U1).+ and ``--tree-root``, or ``--expect-chain`` (U1)- Gives ``--expect-config-root`` with ``--expect-config-pcr`` (U2,- R14).+ R14)- Gives ``--strict-anchor`` where nothing else measures into PCR 9after ``init`` (R11), and ``--expect-pcr`` for the firmware, kernel and- initrd values its policy accepts.+ initrd values its policy accepts- Treats ``bound_in``, the eventlog's content beyond the replay,``shirudo status``, the keepalives and the tamper counters as the- target's own account (R17).+ target's own account (R17)Related--------- :doc:`security-model` for the short version.-- :doc:`tamper-counters` for every counter and its hooks.-- :doc:`cryptography` for every algorithm and where it is used.+- :doc:`security-model` for the short version+- :doc:`tamper-counters` for every counter and its hooks+- :doc:`cryptography` for every algorithm and where it is used- :doc:`/internals/enforcement`, :doc:`/internals/seal`,:doc:`/internals/signed-loader` and- :doc:`/internals/measurement-register` for the mechanisms.+ :doc:`/internals/measurement-register` for the mechanisms- :doc:`/concepts/background/bpf-lsm`,:doc:`/concepts/background/keyrings`, :doc:`/concepts/background/tpm`- and :doc:`/concepts/background/dm-verity` for the platform background.+ and :doc:`/concepts/background/dm-verity` for the platform backgrounddiff --git a/Documentation/start/guides/first-upatch.rst b/Documentation/start/guides/first-upatch.rstindex 4c04a648..eac420dc 100644--- a/Documentation/start/guides/first-upatch.rst+++ b/Documentation/start/guides/first-upatch.rst@@ -16,10 +16,10 @@ Before you begin----------------- The test VM from the :doc:`/start/quickstart`, running as- ``quickstart``.+ ``quickstart``- The operator shell from the quickstart: in the root of your checkout,with ``shirudo`` and ``shirudo-build`` on ``PATH`` and ``KEYS`` naming- the test VM's key directory.+ the test VM's key directory- A root shell on the target (``make -C testing vm-sshVM_NAME=quickstart``) in which ``shirudo`` runs the runtime binary:diff --git a/Documentation/start/guides/publish-package.rst b/Documentation/start/guides/publish-package.rstindex 7ef44f68..c18cd65f 100644--- a/Documentation/start/guides/publish-package.rst+++ b/Documentation/start/guides/publish-package.rst@@ -22,11 +22,11 @@ Before you begin----------------- The test VM from the :doc:`/start/quickstart`, running as- ``quickstart``.+ ``quickstart``- The operator shell from the quickstart: in the root of your checkout,with ``shirudo`` and ``shirudo-build`` on ``PATH`` and ``KEYS`` naming- the test VM's key directory.-- Docker on the operator host, for a local registry.+ the test VM's key directory+- Docker on the operator host, for a local registry- A root shell on the target (``make -C testing vm-sshVM_NAME=quickstart``) in which ``shirudo`` runs the runtime binary:diff --git a/Documentation/start/how-it-works.rst b/Documentation/start/how-it-works.rstindex 43d35ccf..4bfe934e 100644--- a/Documentation/start/how-it-works.rst+++ b/Documentation/start/how-it-works.rst@@ -194,8 +194,8 @@ upatches through their directives in the same way.Related--------- :doc:`what-is-shirudo` for the problem shirudo addresses and its scope.-- :doc:`/concepts/operator-and-target` for what each side holds.-- :doc:`/internals/architecture` for the components and their code.+- :doc:`what-is-shirudo` for the problem shirudo addresses and its scope+- :doc:`/concepts/operator-and-target` for what each side holds+- :doc:`/internals/architecture` for the components and their code- :doc:`/security/security-model` for what each step protects against- and where it stops.+ and where it stopsdiff --git a/Documentation/upatches/attach-kinds.rst b/Documentation/upatches/attach-kinds.rstindex 56052a88..b171b819 100644--- a/Documentation/upatches/attach-kinds.rst+++ b/Documentation/upatches/attach-kinds.rst@@ -350,6 +350,6 @@ away from targets that lack its site.Related--------- :doc:`concepts` for the roles, pins and names.-- :doc:`debugging` for every failure category of a load.-- :doc:`/internals/kernel-interfaces` for the system calls in detail.+- :doc:`concepts` for the roles, pins and names+- :doc:`debugging` for every failure category of a load+- :doc:`/internals/kernel-interfaces` for the system calls in detaildiff --git a/Documentation/upatches/beefile.rst b/Documentation/upatches/beefile.rstindex e718971a..d9317aae 100644--- a/Documentation/upatches/beefile.rst+++ b/Documentation/upatches/beefile.rst@@ -356,7 +356,7 @@ directories while its upatch names are the detectors' base names, soRelated--------- :doc:`publishing` for building, pushing and appending a package.-- :doc:`/reference/cli/bpm` for ``bpm build`` and ``bpm config update``.+- :doc:`publishing` for building, pushing and appending a package+- :doc:`/reference/cli/bpm` for ``bpm build`` and ``bpm config update``- :doc:`/reference/formats/bpm-formats` for the archive, the index and the- tree.+ treediff --git a/Documentation/upatches/debugging.rst b/Documentation/upatches/debugging.rstindex 4ae090be..aa9b1359 100644--- a/Documentation/upatches/debugging.rst+++ b/Documentation/upatches/debugging.rst@@ -16,9 +16,9 @@ what to change for each failure.Before you begin------------------ Root on the target where the load failed, and the ``.upatch`` file.+- Root on the target where the load failed, and the ``.upatch`` file- The source and the ``vmlinux.h`` the upatch was built from, on the- operator host.+ operator hostGet the report--------------@@ -252,6 +252,6 @@ Fix and load againNext steps------------ :doc:`/reference/cli/upatch-load` for the report's fields.-- :doc:`/concepts/background/co-re-btf` for how relocations resolve.-- :doc:`testing` for the test VM.+- :doc:`/reference/cli/upatch-load` for the report's fields+- :doc:`/concepts/background/co-re-btf` for how relocations resolve+- :doc:`testing` for the test VMdiff --git a/Documentation/upatches/decoders.rst b/Documentation/upatches/decoders.rstindex 6df7f3af..cc835a7a 100644--- a/Documentation/upatches/decoders.rst+++ b/Documentation/upatches/decoders.rst@@ -262,7 +262,7 @@ message, so give such a map a metric decoder.Next steps------------ :doc:`/operate/telemetry` to export every map on a schedule.-- :doc:`/reference/formats/otlp` for the documents on the wire.+- :doc:`/operate/telemetry` to export every map on a schedule+- :doc:`/reference/formats/otlp` for the documents on the wire- The decoders under ``upatches/kernel-obs/decoders/`` for complete log- decoders over arena tables, timestamps included.+ decoders over arena tables, timestamps includeddiff --git a/Documentation/upatches/examples.rst b/Documentation/upatches/examples.rstindex 85ae8cc2..5f97213d 100644--- a/Documentation/upatches/examples.rst+++ b/Documentation/upatches/examples.rst@@ -103,5 +103,5 @@ build, and its tree entries do not match its upatch names.Related--------- :doc:`kernel-fix-tutorial` to write a detector of your own.-- :doc:`beefile` for the keys both Beefiles use.+- :doc:`kernel-fix-tutorial` to write a detector of your own+- :doc:`beefile` for the keys both Beefiles usediff --git a/Documentation/upatches/kernel-fix-tutorial.rst b/Documentation/upatches/kernel-fix-tutorial.rstindex 03d265d5..1df5842a 100644--- a/Documentation/upatches/kernel-fix-tutorial.rst+++ b/Documentation/upatches/kernel-fix-tutorial.rst@@ -428,8 +428,8 @@ Sign what a fleet runs with your own key.Next steps------------ :doc:`publishing` for the index, the tree and withdrawing an entry.-- :doc:`/operate/deliver-packages` for what a target does with them.+- :doc:`publishing` for the index, the tree and withdrawing an entry+- :doc:`/operate/deliver-packages` for what a target does with them- :doc:`maps-arenas-serializers` and :doc:`decoders` to export what the- upatch records.-- :doc:`attach-kinds` for the other places an upatch can attach.+ upatch records+- :doc:`attach-kinds` for the other places an upatch can attachdiff --git a/Documentation/upatches/maps-arenas-serializers.rst b/Documentation/upatches/maps-arenas-serializers.rstindex 68dde972..5e1ce476 100644--- a/Documentation/upatches/maps-arenas-serializers.rst+++ b/Documentation/upatches/maps-arenas-serializers.rst@@ -208,7 +208,7 @@ LimitsRelated--------- :doc:`attach-kinds` for the serializer and test-run roles.+- :doc:`attach-kinds` for the serializer and test-run roles- :doc:`examples` for ``kernel-obs``, which uses this template for all- its tables.-- :doc:`/reference/cli/upatch-map` for the command's options.+ its tables+- :doc:`/reference/cli/upatch-map` for the command's optionsdiff --git a/Documentation/upatches/publishing.rst b/Documentation/upatches/publishing.rstindex 9280e653..40c5915a 100644--- a/Documentation/upatches/publishing.rst+++ b/Documentation/upatches/publishing.rst@@ -164,6 +164,6 @@ Next steps----------- :doc:`/reference/formats/bpm-formats` for the index and the tree- documents.-- :doc:`/operate/deliver-packages` to configure targets.-- :doc:`/operate/attest` to verify what targets loaded.+ documents+- :doc:`/operate/deliver-packages` to configure targets+- :doc:`/operate/attest` to verify what targets loadeddiff --git a/Documentation/upatches/testing.rst b/Documentation/upatches/testing.rstindex 5ec3b396..164a5027 100644--- a/Documentation/upatches/testing.rst+++ b/Documentation/upatches/testing.rst@@ -18,11 +18,11 @@ are the same elsewhere.Before you begin------------------ A shirudo checkout built with ``make`` and ``make shirudo-build``.+- A shirudo checkout built with ``make`` and ``make shirudo-build``- A Linux host with KVM, root, and the host packages the test VM needs,- listed in :doc:`/contribute/testing`.+ listed in :doc:`/contribute/testing`- An upatch and its unload directive, built as in- :doc:`kernel-fix-tutorial`, or one of the signed fixtures below.+ :doc:`kernel-fix-tutorial`, or one of the signed fixtures belowBoot the test VM----------------@@ -204,7 +204,7 @@ category looks like.Next steps------------ :doc:`debugging` when a load fails.-- :doc:`publishing` once the upatch works.+- :doc:`debugging` when a load fails+- :doc:`publishing` once the upatch works- :doc:`/contribute/testing` for the automated tests that boot the same- VM.+ VM