eBPF-based security platform
docs: give the lock spans and init's failure point as the code has them
Daniel Borkmann61f5c2251663
diff --git a/Documentation/internals/boot-flow.rst b/Documentation/internals/boot-flow.rstindex f603ae1b..a383bb58 100644--- a/Documentation/internals/boot-flow.rst+++ b/Documentation/internals/boot-flow.rst@@ -179,11 +179,17 @@ where ``init`` stopped:- After attaching, before the runtime image is mounted again: the guardsare in place, ``shirudo.service`` is skipped, and commands that needthe runtime image fail.-- After the config boot event (a restore failure, a register that cannot- be bound): the guards are in place and the config selection stays- pending. ``shirudo.service`` refuses with the activation pending, and- every target command except ``shirudo status`` and ``shirudo image- status`` refuses until a reboot.+- After the runtime image is mounted, before the config selection is+ recorded pending (a config that fails its checks): the guards are in+ place, and ``shirudo.service`` runs ``init`` again, which starts the+ config boot event, the restore and the binding over from the root file+ system.+- After the selection is recorded pending (a failed extension or mount,+ a restore failure, a register that cannot be bound): the guards are in+ place and the selection stays pending. ``shirudo.service`` refuses+ with the activation pending, and every target command except+ ``shirudo status`` and ``shirudo image status`` refuses until a+ reboot.``shirudo status`` and attestation are how such a target shows. Withouta complete initrd ``init`` the register is not bound in the initrd, and adiff --git a/Documentation/security/threat-model.rst b/Documentation/security/threat-model.rstindex b9361947..3cc7906d 100644--- a/Documentation/security/threat-model.rst+++ b/Documentation/security/threat-model.rst@@ -1050,9 +1050,12 @@ do not fold. A boot ID that root binds over ``/proc``, or a pendingrecord in a ``/run`` of root's making, which no reader takes since itcarries no seal label, therefore moves nothing (``t6147``). A measuringcommand holds a lock beside the eventlog from its extend to its append,-a load or an unload from that undo to its append, so the register and+and longer where it changes pins, so the register andthe log advance in one order and the undo never takes a load in flight-for a stopped one. An append that fails after a successful extend+for a stopped one. A load holds it from before the undo to its append,+an unload until its pins and archive are gone, and a revocation's purge+of one upatch from its archive read until its pins and archive are+gone. An append that fails after a successful extendleaves the register ahead of the log; shirudo reports the desync,``shirudo status`` reports a register its replay cannot explain, andevery later load and unload refuses until the next reboot.