eBPF-based security platform
docs: follow the style rules on the internals pages and the threat model
Daniel Borkmann158cc503d941
diff --git a/Documentation/internals/architecture.rst b/Documentation/internals/architecture.rstindex 4a4322c6..53ba31ec 100644--- a/Documentation/internals/architecture.rst+++ b/Documentation/internals/architecture.rst@@ -139,7 +139,6 @@ PCR 9, the config PCR the bootstrap settings select, and the attestationkey that signs evidence. The ECC EK salts the authenticated TPMsession; init freezes EK's name in the identity map.-How the parts depend on each other----------------------------------diff --git a/Documentation/internals/config-images.rst b/Documentation/internals/config-images.rstindex a7db1b40..26488185 100644--- a/Documentation/internals/config-images.rst+++ b/Documentation/internals/config-images.rst@@ -162,7 +162,7 @@ reads them from the authenticated runtime device, requires ML-DSA-87 andrejects duplicate public keys. Before creating any config mapping,including the temporary full-read verification mapping, it verifies theCMS root signature against this set. A certificate trusted only by-another kernel keyring cannot authorize a Shirudo config.+another kernel keyring cannot authorize a config.``init`` enrolls all these certificates in ``.dm-verity`` and seals it,which the kernel leaves open only withdiff --git a/Documentation/internals/design-decisions.rst b/Documentation/internals/design-decisions.rstindex 60bf2c1d..2dc2ea17 100644--- a/Documentation/internals/design-decisions.rst+++ b/Documentation/internals/design-decisions.rst@@ -223,13 +223,13 @@ release that contains its signed-loader work, with the patches inA tree key the node never parses---------------------------------``bpm tree append`` carries each earlier operation's ``fixes`` into the-next generation from a second read of its own over the previous-publication's bytes, with the JSON reader of :src:`util/json.c`, in the-operator's helper. ``tree_parse()``, which reads the publication on the-node as well, is unchanged and still skips the key; the shared emitter,-``tree_emit_publication()``, takes only an optional callback that adds-keys after an operation's ``artifact``, which the publisher passes and+The node's parser of a tree publication, ``tree_parse()``, skips an+operation's ``fixes``. ``bpm tree append`` carries each earlier+operation's ``fixes`` into the next generation from a second read of+its own over the previous publication's bytes, with the JSON reader of+:src:`util/json.c`, in the operator's helper. The shared emitter,+``tree_emit_publication()``, takes an optional callback that adds keys+after an operation's ``artifact``, which the publisher passes andnothing else does.``tree_parse()`` is the node's parser of registry input. A key it reads@@ -241,7 +241,7 @@ which ``tree_parse()`` takes an optional field and sink for extraoperation keys that the publisher passes and the node leaves ``NULL``,would read it once, at the price of a change to the node's parser andto the ``bpm-tree-reader`` and ``bpm-tree-sync-model`` proofs that-include it; it is left for later.+include it.A keepalive key for each run----------------------------@@ -254,7 +254,7 @@ nothing about it is kept on the target between runs.The cost is a primary key derivation once a minute, which a slowhardware TPM can take hundreds of milliseconds for-(:doc:`/operate/plan/overhead`). The optimisation to take up if that+(:doc:`/operate/plan/overhead`). The optimization to take up if thatcost matters is to keep the key under a persistent handle,``TPM2_EvictControl`` once and a lookup at every run. The rule againsta persistent index concerns the measurement register and does notdiff --git a/Documentation/internals/kernel-patches.rst b/Documentation/internals/kernel-patches.rstindex 8812fa7d..cc0fe53b 100644--- a/Documentation/internals/kernel-patches.rst+++ b/Documentation/internals/kernel-patches.rst@@ -53,11 +53,11 @@ program, the sleepable hook set of ``kernel/bpf/bpf_lsm.c`` lacks``d_inode`` of a dentry but not ``d_parent``, and ``may_access_mm()``grants a read-mode access to ``CAP_PERFMON`` without asking an LSM.-The x86 ftrace fix the tree used to carry is upstream as-``31ac959c915c`` ("x86/ftrace: Mark jmp mode by clearing bit 63 of-trampoline address"), in bpf-next and in the bpf fixes tree for 7.4.-:doc:`/operate/plan/system-requirements` says which kernels still need-it.+An x86-64 target also needs upstream commit ``31ac959c915c``+("x86/ftrace: Mark jmp mode by clearing bit 63 of trampoline address"),+which bpf-next and the bpf fixes tree for 7.4 contain and which the+tree does not carry; :doc:`/operate/plan/system-requirements` says+why.How the test kernel applies them--------------------------------diff --git a/Documentation/internals/measurement-register.rst b/Documentation/internals/measurement-register.rstindex 1a14bc2f..4e930409 100644--- a/Documentation/internals/measurement-register.rst+++ b/Documentation/internals/measurement-register.rst@@ -121,8 +121,8 @@ the owner seed, and the frozen key can no longer be recreated.Authenticated TPM sessions---------------------------Shirudo employs trust on first use (TOFU) and trusts the TPM it finds during-initialization in the initrd by freezing the EK's name in the identity map.+``init`` in the initrd trusts the TPM it finds there, trust on first use,+and freezes the name of its endorsement key in the identity map.Every TPM connection creates the standard ECC P-256 endorsement key(EK) to transport a secret salt via ECDH to calculate an HMAC session key.diff --git a/Documentation/security/threat-model.rst b/Documentation/security/threat-model.rstindex fcabc4e2..78a4913f 100644--- a/Documentation/security/threat-model.rst+++ b/Documentation/security/threat-model.rst@@ -1764,7 +1764,7 @@ R21 upatches can be neutralized by changing their targetsin that namespace. Reconcile adds no register event: TPM evidence coversthe signed class mask and loaded artifact, not the device inventory orwhich devices are covered. ``t3111`` and ``t3112`` exercise selection,- reconcile and unload; driver behaviour across a namespace move is+ reconcile and unload; driver behavior across a namespace move istested only for veth.Every XDP program is loaded with multi-buffer support and a selected