Skip to content

eBPF-based security platform

treewide: collapse double blank lines

Daniel Borkmannd27b7aa74409
diff --git a/Documentation/architecture.rst b/Documentation/architecture.rst
index 8181e53c..2e420ae5 100644
--- a/Documentation/architecture.rst
+++ b/Documentation/architecture.rst
@@ -14,7 +14,6 @@ document has a bug. The security argument behind the design is in
`upatch-spec <upatch-spec.rst>`__, and the export path in
`telemetry <telemetry.rst>`__.
-
1) What shirudo is
------------------
@@ -45,7 +44,6 @@ The userspace side is one binary with git-like subcommands; on the
target there is no daemon and no socket, only one-shot invocations
driven by systemd timers.
-
2) Why shirudo exists
---------------------
@@ -75,7 +73,6 @@ hours, where the regular kernel update and reboot cycle of that fleet
was four weeks. shirudo is built to make that the normal path, and to
make it signed, measured and agentless.
-
3) Design properties
--------------------
@@ -106,7 +103,6 @@ source tree is a set of small gadgets so an agent can hold the relevant
context at once. The outcome is always an operator-signed upatch: the
agent proposes, the key holder signs.
-
4) Operator and target
----------------------
@@ -139,7 +135,6 @@ shirudo owns no push transport, no fleet inventory and no rollout
coordinator. A single ``.upatch`` copied to the target by any means
loads through the same path.
-
5) The signed-loader path
-------------------------
@@ -201,7 +196,6 @@ Attach kinds. The attach metadata selects a raw tracepoint attach
pre-routing netfilter, or ``uprobe.multi`` entry probes bound to the
target ELF's GNU build ID. The format specification has the encoding.
-
6) Enforcement in the kernel
----------------------------
@@ -330,7 +324,6 @@ nobody, ``RLIMIT_CORE`` zero, sensitive buffers locked in memory and
scrubbed after use. The zeroing allocator in ``util/malloc.c`` wipes
freed memory; the libc allocators are poisoned project-wide.
-
7) Target state
---------------
@@ -485,7 +478,6 @@ made before the switch keep their links. Under
``upatch-tree.conf``, ``environment``). ``shirudo config`` prints the
effective configuration with a comment on every key.
-
8) Packages and registries
--------------------------
@@ -565,7 +557,6 @@ leaves no successor, is refused. A ``delete`` publishes the entry's
unload directive and is accepted by a target only for an id it loaded
from the same tree.
-
9) Observability
----------------
@@ -596,7 +587,6 @@ decoders and the collector integration are described in
Every command logs through ``syslog(3)`` as ``shirudo`` to
``LOG_AUTHPRIV``; ``journalctl -t shirudo`` shows it.
-
10) Failure reporting
---------------------
@@ -618,7 +608,6 @@ Automation treats ``tampered`` as "refresh state, then decide", never
as "retry the same input": a concurrent legitimate operator produces
it too.
-
11) Runtime design
------------------
@@ -647,7 +636,6 @@ There are no fallbacks for older kernels: a missing feature
fails the build or the pre-flight with a message, never a degraded
mode.
-
12) Project layout
------------------
@@ -674,7 +662,6 @@ mode.
``shirudo help --list-cmds`` prints the supported command set.
-
13) Kernel work this design waits for
-------------------------------------
diff --git a/Documentation/features.rst b/Documentation/features.rst
index 43455727..fc42a8c8 100644
--- a/Documentation/features.rst
+++ b/Documentation/features.rst
@@ -28,7 +28,6 @@ whose attachment cannot be a pinnable link are refused by the builder,
which is why plain ``socket`` filters and ``sk_skb`` programs are not
in the list.
-
1) Kernel functions: fentry, fexit, fmod_ret
--------------------------------------------
@@ -57,7 +56,6 @@ shield that rejects a call before the vulnerable code runs: return
error. ``fmod_ret.s/<function>`` declares the sleepable variant. The
builder refuses a bare ``fmod_ret`` without a function.
-
2) LSM hooks: lsm
-----------------
@@ -81,7 +79,6 @@ requirements already demand for shirudo itself, so every target that
runs shirudo accepts LSM upatches. The program's return value matters
only on hooks that return an ``int``; on ``void`` hooks it observes.
-
3) Tracepoints: tp_btf
----------------------
@@ -99,7 +96,6 @@ beyond the base requirements is needed; the tracepoint must exist in
the target kernel, which CO-RE checks at load and reports as
``btf_mismatch`` when it does not.
-
4) Probes on kernel functions: kprobe, kretprobe
------------------------------------------------
@@ -124,7 +120,6 @@ export fails at load with the kernel's error in the report; when the
function is in a module that is not loaded, the report says so and
``bpm`` treats the package as installed but not attached.
-
5) Probes on userspace binaries: uprobe.multi
---------------------------------------------
@@ -152,7 +147,6 @@ The target needs ``CONFIG_UPROBE_EVENTS``. Return probes, the
single-function ``uprobe/`` form and ``,`` or ``|`` alternation in the
glob are refused by the builder; one ``*`` or ``?`` glob per section.
-
6) Packets at the cgroup: cgroup_skb
------------------------------------
@@ -173,7 +167,6 @@ and a bare ``cgroup_skb`` are refused. Several ``cgroup_skb`` programs
on the host coexist; the kernel runs all of them and drops the packet
if any says so.
-
7) Packets at netfilter: netfilter
----------------------------------
@@ -194,7 +187,6 @@ one kind whose hook, family and priority are fixed by shirudo rather
than by the section name; a shield that needs another family or hook
is written as a ``cgroup_skb`` or an ``lsm`` program instead.
-
8) Programs that attach nowhere
-------------------------------
@@ -227,7 +219,6 @@ Both roles ride inside the signed loader with the attached programs,
so a serializer is as much the operator's code as the shield beside
it, and neither can introduce anything the signature does not cover.
-
9) Maps and decoders
--------------------
@@ -241,7 +232,6 @@ operator nor exported. The metadata the loader needs rides in frozen
array maps the builder creates. The `telemetry <telemetry.rst>`__
document describes the export and the decoder API.
-
10) At a glance
---------------
diff --git a/Documentation/getting-started.rst b/Documentation/getting-started.rst
index a1c8da84..8dfb3cea 100644
--- a/Documentation/getting-started.rst
+++ b/Documentation/getting-started.rst
@@ -14,7 +14,6 @@ first if the target kernel is older than Linux v7.4 or not built with
the BPF LSM, BTF and ML-DSA enabled. For local development one host
can play both roles.
-
1) Build
--------
@@ -56,7 +55,6 @@ When working from a checkout instead of an installed package, put the
checkout root first on ``$PATH`` so ``shirudo build`` finds the helper,
or point ``SHIRUDO_BUILD`` at it.
-
2) Create a signing key
-----------------------
@@ -83,7 +81,6 @@ vouch`` on an operator the target already trusts, and leaves it with
``shirudo keys revoke <fingerprint>``. The `key-lifecycle
<key-lifecycle.rst>`__ guide covers both.
-
3) Build a signed upatch
------------------------
@@ -116,7 +113,6 @@ the kernel actually loaded it is shown by ``upatch get`` after the
load. The `upatch <upatch.rst>`__ guide covers the BPF side of a
upatch, decoders, serializers and the release workflow.
-
4) Initialise a target
----------------------
@@ -190,7 +186,6 @@ against its pin, the register against this boot's eventlog replay and
its anchor, and the assets on disk; ``--json`` emits the same as a
document.
-
5) Load and unload a local artifact
-----------------------------------
@@ -230,7 +225,6 @@ the directive, detaches, removes the persisted artifact and extends the
chain. Unloading something that is not loaded is ``already_unloaded``
and extends nothing.
-
6) Packages and registries
--------------------------
@@ -297,7 +291,6 @@ names it (``endpoint=`` and ``reference=``); ``shirudo bpm tree sync
``shirudo-bpm-tree-sync.timer`` runs it every minute. Node labels for
selectors live in ``/etc/shirudo/node.labels``.
-
7) Export telemetry
-------------------
@@ -315,7 +308,6 @@ push map snapshots and a status keepalive every five seconds.
`telemetry <telemetry.rst>`__ describes the records, the decoders and
how to land them in ClickHouse, Splunk or a collector of your own.
-
8) Inspect
----------
@@ -332,7 +324,6 @@ how to land them in ClickHouse, Splunk or a collector of your own.
``config`` prints the effective configuration with every key explained.
Every command logs to syslog under the ``shirudo`` tag.
-
9) Attest a target
------------------
@@ -394,7 +385,6 @@ root file system; ``--ek-name`` pins the endorsement key;
``--strict-anchor`` fails instead of noting when PCR 9 holds more than
the initrd and the anchor. Neither command needs the other machine.
-
10) Troubleshooting
-------------------
diff --git a/Documentation/index.rst b/Documentation/index.rst
index 6b2f5212..4141b6bb 100644
--- a/Documentation/index.rst
+++ b/Documentation/index.rst
@@ -28,7 +28,6 @@ This index points at the documents in the tree. The code is
authoritative for behaviour; the documents describe it and say why it
is the way it is.
-
1) Which document
-----------------
@@ -102,7 +101,6 @@ Contributing
copied verbatim from ``Documentation/process/coding-style.rst``
and applied to userspace C and BPF alike.
-
2) Companion files in the repository root
-----------------------------------------
diff --git a/Documentation/initrd.rst b/Documentation/initrd.rst
index ba618353..f07092f3 100644
--- a/Documentation/initrd.rst
+++ b/Documentation/initrd.rst
@@ -13,7 +13,6 @@ and how the pieces survive the switch from one to the other. The
``threat-model`` document says why it matters; ``tpm`` describes the
register the initrd binds.
-
1) Two runs of init
-------------------
@@ -52,7 +51,6 @@ user keyring until the next reboot, and the register binds after
condition warns, and a verifier can refuse the evidence with
``--require-initrd`` or by pinning PCR 11.
-
2) What survives the switch to the root file system
---------------------------------------------------
@@ -83,7 +81,6 @@ root file system therefore needs shirudo installed at the path the
initrd runs it from, which the dracut module guarantees by copying the
installed binary.
-
3) What the initrd needs
------------------------
@@ -130,7 +127,6 @@ they are used. Non-systemd initrds (initramfs-tools, busybox) are
not supported: without the phase measurements an initrd binding is no
stronger than a late one.
-
4) Building the initrd
----------------------
@@ -192,7 +188,6 @@ does its work when ``kernel-install`` or ``ukify`` runs dracut, and the
parameter goes into ``/etc/kernel/cmdline`` before the image is
rebuilt.
-
5) Checking a target
--------------------
diff --git a/Documentation/key-lifecycle.rst b/Documentation/key-lifecycle.rst
index f3ce5474..2e03b241 100644
--- a/Documentation/key-lifecycle.rst
+++ b/Documentation/key-lifecycle.rst
@@ -13,7 +13,6 @@ in protection, and what to do when one is compromised. The
`threat-model <threat-model.rst>`__ says why the mechanisms are shaped
the way they are; this document says what to do.
-
1) The keys in the system
-------------------------
@@ -60,7 +59,6 @@ member's voucher, and the kernel keyring that holds it once ``init``
has run. Two roles may share a host for development; production
operators and targets do not.
-
2) The trusted set on a target
------------------------------
@@ -127,7 +125,6 @@ verifies a signature, and shirudo adds no date check of its own. The
ten years are a statement of intent and the trigger for rotation, not
a cut-off a target enforces.
-
3) What the design fixes
------------------------
@@ -157,7 +154,6 @@ Three facts shape every operation below:
Together these make adding a key cheap and removing one deliberate,
and they make the order of a rotation matter.
-
4) Adding a key
---------------
@@ -191,7 +187,6 @@ Record the new set's ``init_event`` from ``shirudo attest predict
rebooted with the new set measures that value, one that has not still
measures the old.
-
5) Rotating a key
-----------------
@@ -238,7 +233,6 @@ When the old pair is no longer needed anywhere, shred the private key
and keep the certificate: old evidence and old eventlogs name its
digest, and verifying them later needs it.
-
6) Revocation
-------------
@@ -307,7 +301,6 @@ A compromised key
not repaired; the `operations <operations.rst>`__ guide covers
both.
-
7) Custody
----------
diff --git a/Documentation/operations.rst b/Documentation/operations.rst
index 0a0c01eb..bc892c3b 100644
--- a/Documentation/operations.rst
+++ b/Documentation/operations.rst
@@ -13,7 +13,6 @@ The `getting-started <getting-started.rst>`__ document brings a target
up; the `initrd <initrd.rst>`__ document describes the production
configuration; this one is about the time after that.
-
1) The moving parts
-------------------
@@ -66,7 +65,6 @@ inode gets the label of the directory it is created in.
LSM pins, the frozen identity map and the pending init record between
the initrd run and the root's.
-
2) Watching a target
--------------------
@@ -160,7 +158,6 @@ computes from what was installed, with a fresh nonce each time; the
`tpm <tpm.rst>`__ document describes the loop and what each refusal
means.
-
3) Upgrading shirudo
--------------------
@@ -186,7 +183,6 @@ time, the package enables ``shirudo.service`` for the next boot and
nothing more; ``systemctl start shirudo.service`` brings enforcement up
immediately, in the staging configuration until the reboot.
-
4) Kernel updates
-----------------
@@ -212,7 +208,6 @@ covers selectors. After the reboot, ``shirudo init`` reports the
upatch that failed; remove it (``bpm uninstall``, or the tree's
``delete``) and re-run ``init``, which then binds the register.
-
5) Taking a target out of service
---------------------------------
@@ -240,7 +235,6 @@ after the reboot: while the seal is attached, its labels stop root
from deleting it. An unload before the reboot is optional but
measured, which keeps the last evidence of the node complete.
-
6) Backup and restore
---------------------
@@ -276,7 +270,6 @@ file is sealed, nothing but shirudo can truncate or rotate it while
enforcement is up, and shirudo has no command to; archive it at
reinstall time, and size the cap to the lifetime of the installation.
-
7) Recovering
-------------
@@ -344,7 +337,6 @@ A pending record lingers
``shirudo init --check-only`` runs the pre-flight without touching
anything and is the first thing to run on a target that misbehaves.
-
8) Categories and exit status
-----------------------------
diff --git a/Documentation/requirements.rst b/Documentation/requirements.rst
index 441ddbbf..f6b338f0 100644
--- a/Documentation/requirements.rst
+++ b/Documentation/requirements.rst
@@ -12,7 +12,6 @@ shirudo requires Linux v7.4 or newer and a current toolchain and has
no fallback paths for older ones, so a missing item here fails loudly at
build or pre-flight time rather than degrading silently.
-
1) Target kernel
----------------
@@ -143,7 +142,6 @@ report; it never attaches somewhere else.
* - ``CONFIG_NETFILTER``, ``CONFIG_NETFILTER_BPF_LINK``
- ``netfilter`` upatches at IPv6 pre-routing.
-
2) Operator kernel
------------------
@@ -217,7 +215,6 @@ or ``TEST_VM_APT_PROXY``; a proxy that only the host's ``/etc/hosts``
names must be given by address, as in ``http://[2001:db8::1]:8080``,
since the libguestfs appliance resolves names through DNS alone.
-
3) Cryptography
---------------
@@ -258,7 +255,6 @@ since the libguestfs appliance resolves names through DNS alone.
refused; there is no fallback. Server certificates are whatever
the registry or collector presents.
-
4) Operator host
----------------
@@ -285,7 +281,6 @@ since the libguestfs appliance resolves names through DNS alone.
The operator never needs a TPM, the kernel keyring or ``CAP_BPF``; only
the private key under ``/var/lib/shirudo/keys/``.
-
5) Target host
--------------
@@ -312,7 +307,6 @@ the private key under ``/var/lib/shirudo/keys/``.
Operator and target may be on different architectures; the artifact
format is little-endian and the signature is architecture-neutral.
-
6) Build host for the target binary
-----------------------------------
@@ -325,7 +319,6 @@ the system one. The operator package, by contrast, links the host's
shared libraries and must be built on the distribution it is installed
on.
-
7) Documentation and tests
--------------------------
diff --git a/Documentation/telemetry.rst b/Documentation/telemetry.rst
index b57e43ac..eb9c670d 100644
--- a/Documentation/telemetry.rst
+++ b/Documentation/telemetry.rst
@@ -18,7 +18,6 @@ that give a record its shape, the documents on the wire, the transport
and its configuration, and how to land the data in the OpenTelemetry
Collector, ClickHouse, Splunk or a collector of your own.
-
1) The pipeline
---------------
@@ -51,7 +50,6 @@ it, exactly as the timer does, because the serializer hands over what
it collected since the previous read; ``upatch map --peek`` asks for
the interval still being collected and leaves it for the exporter.
-
2) From a map to a record
-------------------------
@@ -80,7 +78,6 @@ unsigned per-CPU BTF integer scalar map becomes a metric named
attribute; every other map becomes a log record whose body carries the
entries.
-
3) Decoders
-----------
@@ -186,7 +183,6 @@ The ``kernel-obs`` package carries decoders for its exec, net, listen,
watch, dns, priv and file tables; they are the reference for writing new
ones, the timestamp conversion included.
-
4) The documents on the wire
----------------------------
@@ -249,7 +245,6 @@ JSON lines. ``--json`` prints the map listing or decoded records to
stdout. ``--json=<path>`` (or ``map_export.json_path``) appends them
as JSON lines to a file for a log shipper that tails files.
-
5) Transport
------------
@@ -296,7 +291,6 @@ Limits. A record larger than ``map_export.log_record_max_bytes``
(default 4 MiB) are refused with a diagnostic, never truncated; the S3
path exists for snapshots that are legitimately larger.
-
6) Configuration and timers
---------------------------
@@ -325,7 +319,6 @@ or nothing. ``shirudo-keepalive.timer`` runs ``shirudo status --otel
ordinary one-shot services; disable a timer to stop an export, and
nothing else changes.
-
7) Integrating with collectors
------------------------------
@@ -447,7 +440,6 @@ receiver, Vector, Fluent Bit, a Splunk forwarder), and ``shirudo status
--json`` and ``--report=<path>`` produce files the same way.
Air-gapped fleets use this path.
-
8) Checking a pipeline
----------------------
diff --git a/Documentation/threat-model.rst b/Documentation/threat-model.rst
index 687bd5c0..f238ebe0 100644
--- a/Documentation/threat-model.rst
+++ b/Documentation/threat-model.rst
@@ -14,7 +14,6 @@ breaks one of the properties below is worse than no change, because it
ships a false sense of safety to fleets and devices that are hard to
patch.
-
1) Scope and assets
-------------------
@@ -40,7 +39,6 @@ The assets, in the order an attacker would want them:
``/var/lib/shirudo`` and ``/etc/shirudo``;
- the status, reports and exported telemetry an operator acts on.
-
2) Trust boundaries
-------------------
@@ -78,7 +76,6 @@ authenticated on the target by its ML-DSA signature.
The kernel is trusted. shirudo does not defend against a compromised
kernel, verifier, TPM or hardware, and it does not harden the kernel.
-
3) Adversaries
--------------
@@ -99,7 +96,6 @@ C. A network adversary between registry and target, or a hostile
D. An adversary holding the operator's signing key. Out of scope:
that adversary is the operator.
-
4) Threats addressed
--------------------
@@ -289,7 +285,6 @@ T10 An attempt that leaves no trace
is evidence of an attempt, not of a compromise: the refusal is what
moved it.
-
5) Residual risks
-----------------
@@ -444,7 +439,6 @@ would keep foreign entries out of the tree altogether, and a
``d_instantiate`` hook the BPF LSM can sleep in, which would mark a
directory the moment its dentry is bound (residual risk 14).
-
6) Out of scope
---------------
@@ -459,7 +453,6 @@ directory the moment its dentry is bound (residual risk 14).
- SSH, remote access and audit retention. Those belong to the
infrastructure the operator already runs.
-
7) Operational guidance
-----------------------
diff --git a/Documentation/tpm.rst b/Documentation/tpm.rst
index 06230e35..b414dbc8 100644
--- a/Documentation/tpm.rst
+++ b/Documentation/tpm.rst
@@ -24,7 +24,6 @@ target that cannot bind its register does not initialise, and a load
whose extension fails refuses with ``tpm_error`` rather than succeed
unmeasured. The operator side never touches a TPM.
-
1) The register
---------------
@@ -173,7 +172,6 @@ the evidence is signed by the key the operator pinned, and a
substitute TPM fails verification. libtss2's own logging is silenced
unless ``TSS2_LOG`` is set.
-
2) Events
---------
@@ -214,7 +212,6 @@ from zeros; ``chain_fold()`` and the eventlog replay use the
same fold. Boot restore is exactly one init event however many
upatches it re-applies.
-
3) The eventlog
---------------
@@ -260,7 +257,6 @@ mismatch. An operation that would push the eventlog past
``eventlog.max_bytes`` refuses with ``eventlog_full`` before it
touches the TPM, so register and log never diverge.
-
4) Attestation
--------------
@@ -396,7 +392,6 @@ can buy or emulate, so the evidence stays classical even though the
artifacts it describes are not (residual risk 9). The RSA branch
exists because many TPMs carry only an RSA endorsement certificate.
-
5) Verification and prediction
------------------------------
@@ -474,7 +469,6 @@ name and PCR 9 can be pinned from values the operator knows.
[--ek-ca=<bundle>]`` is described in section 4; it prints its checks,
the path of the challenge it wrote and the credential to expect.
-
6) Relation to systemd's NvPCRs
-------------------------------
@@ -526,7 +520,6 @@ the UKI signing key and systemd anchors it before the separator while
shirudo only extends it, is the deferred step that would remove the
remaining differences; until then the two coexist without interfering.
-
7) Limits
---------
@@ -577,7 +570,6 @@ context and the deferred mitigations the plan.
* **The evidence is classical.** TPMs sign with ECDSA P-256; the
artifacts the evidence describes are ML-DSA-87.
-
8) Testing
----------
diff --git a/Documentation/upatch-spec.rst b/Documentation/upatch-spec.rst
index a4e07b82..1f9b4b34 100644
--- a/Documentation/upatch-spec.rst
+++ b/Documentation/upatch-spec.rst
@@ -19,7 +19,6 @@ instructions reference, a detached CMS signature, and a small amount of
metadata. There is exactly one container shape for both LOAD artifacts
and UNLOAD directives; a flag bit distinguishes them.
-
1) Conventions
--------------
@@ -36,7 +35,6 @@ the file.
Sizes are bounded: a reader rejects a file larger than 16 MiB.
Artifacts are small in practice.
-
2) File layout
--------------
@@ -60,7 +58,6 @@ begins at offset 360, immediately after the header. ``data`` and
``metadata`` are optional; an absent section
has its ``*_off`` set to 0.
-
3) Header
---------
@@ -116,7 +113,6 @@ context, in libbpf's object-iteration order. The target has only the
find the resulting ``prog_fd`` to attach and pin. They mirror
gen_loader's own iteration.
-
4) Sections
-----------
@@ -285,7 +281,6 @@ link creation. It creates a system-wide ``BPF_TRACE_UPROBE_MULTI``
entry link with ``BPF_F_UPROBE_MULTI_PATH_FD``. ``shirudo status``
renders such a link as ``uprobe.multi/<path> (<count> funcs)``.
-
5) flags
--------
@@ -297,7 +292,6 @@ metadata semantics but nothing about the layout, the signed-content
digest or the kernel verification: both kinds load through the same
``BPF_PROG_LOAD`` + signature + ``keyring_id`` check.
-
6) payload_sha256
-----------------
@@ -311,7 +305,6 @@ separately in its loader ``.rodata`` and in its metadata.
It also lets ``shirudo upatch list`` and ``status`` identify an artifact
without parsing the instruction stream.
-
7) What is signed
-----------------
@@ -332,7 +325,6 @@ signed. The integrity model is therefore:
``payload_mismatch``; the residual that remains is risk 1 in
`threat-model <threat-model.rst>`__.
-
8) Versioning and compatibility
-------------------------------
@@ -351,7 +343,6 @@ bump:
A reader must reject a file whose ``magic`` or ``version`` does not
match, before trusting any offset.
-
9) Reader validation rules
--------------------------
@@ -368,7 +359,6 @@ match, before trusting any offset.
every source range stays inside the blob. Malformed decoder
metadata is treated as absent by offline inspection.
-
10) Production and consumption
------------------------------
diff --git a/Documentation/upatch.rst b/Documentation/upatch.rst
index cd8952b7..2349dd05 100644
--- a/Documentation/upatch.rst
+++ b/Documentation/upatch.rst
@@ -15,7 +15,6 @@ load path and the registry formats, and the `telemetry
<telemetry.rst>`__ document covers decoders and the export pipeline in
depth. This guide is the workflow that ties them together.
-
1) What an upatch is
--------------------
@@ -44,7 +43,6 @@ Every upatch has a name, by default the source file's base name, that
becomes the pin directory and the eventlog's ``name``; it is sanitised
to what bpffs accepts.
-
2) Writing the BPF side
-----------------------
@@ -163,7 +161,6 @@ upatch does what its author wrote, within the kernel's verifier;
shirudo guarantees provenance, not correctness. Test on a kernel like
the target's before signing for a fleet.
-
3) Building and signing
-----------------------
@@ -214,7 +211,6 @@ Review the result before it leaves the operator::
signed decoders. The signing key is never needed on a target, and the
operator never touches a keyring or a TPM.
-
4) Testing on a target
----------------------
@@ -245,7 +241,6 @@ the source. Two options matter when scripting against a target:
``--no-precheck`` skips the state check that guards a load; it exists
for tests and ``init``'s own boot-restore, not for operation.
-
5) Packaging
------------
@@ -326,7 +321,6 @@ builds and signs every entry through ``shirudo-build`` and writes
the registry index orders by and are immutable once published, so a
rebuilt package gets a new version.
-
6) Publishing
-------------
@@ -380,7 +374,6 @@ fleet, append a delete; to replace it, append a delete and then an add
of the new version. Nothing is ever removed from the sequence, which
is what lets a verifier replay a node's projection.
-
7) On the target
----------------
@@ -453,7 +446,6 @@ predict``, which takes the installed artifacts and the tree state and
computes the register value a healthy target must certify; the
`tpm <tpm.rst>`__ document describes both.
-
8) Releasing a mitigation
-------------------------
diff --git a/Makefile b/Makefile
index bbf37c20..3641cc6c 100644
--- a/Makefile
+++ b/Makefile
@@ -117,7 +117,6 @@ install-target: all
install-operator: all
+$(Q)$(MAKE) -f Makefile.shirudo install-operator
-
clean:
+$(Q)$(MAKE) -C Documentation clean
+$(Q)$(MAKE) -C testing clean
diff --git a/packaging/Makefile b/packaging/Makefile
index 471380b2..b840e6fd 100644
--- a/packaging/Makefile
+++ b/packaging/Makefile
@@ -206,7 +206,6 @@ binrpm-pkg:
'$(RPM_VERSION)' '$(RPM_RELEASE)' '$(RPM_ARCH)' '$(PKG_MAINTAINER)' $(RPM_OPERATOR_PKG_PATH))
@printf 'shirudo: wrote %s\n' "$(strip $(if $(filter target,$(PKG_ROLES)),$(RPM_TARGET_PKG_PATH)) $(if $(filter operator,$(PKG_ROLES)),$(RPM_OPERATOR_PKG_PATH)))"
-
config:
+$(Q)$(MAKE) -C $(ROOT) config
diff --git a/testing/t1111-upatch-get.sh b/testing/t1111-upatch-get.sh
index 9690bfc1..ad7526a4 100644
--- a/testing/t1111-upatch-get.sh
+++ b/testing/t1111-upatch-get.sh
@@ -28,7 +28,6 @@ restore() {
}
trap restore EXIT
-
[ -s "$LOAD" ] || test_skip_all "missing marker fixture"
[ -s "$UNLOAD" ] || test_skip_all "missing marker unload fixture"
"$SHIRUDO_BIN" upatch load "$LOAD" --no-precheck >/dev/null 2>&1 ||