eBPF-based security platform
Documentation: name the XDP archive and link causes on the status pages
Daniel Borkmann6014d23f2e48
diff --git a/Documentation/operate/run/read-status.rst b/Documentation/operate/run/read-status.rstindex 080668c2..159227fe 100644--- a/Documentation/operate/run/read-status.rst+++ b/Documentation/operate/run/read-status.rst@@ -201,7 +201,7 @@ HeaderConditions~~~~~~~~~~-Six conditions, each ``OK``, ``WARN`` or ``ALERT`` with a detail. The+Seven conditions, each ``OK``, ``WARN`` or ``ALERT`` with a detail. Theverdict is derived from them... list-table::diff --git a/Documentation/reference/cli/status.rst b/Documentation/reference/cli/status.rstindex b28973c6..f20f6d46 100644--- a/Documentation/reference/cli/status.rst+++ b/Documentation/reference/cli/status.rst@@ -47,12 +47,14 @@ The report shows seven conditions, each ``OK``, ``WARN`` or ``ALERT``:* - Verdict- Applies when* - ``tampered``- - The live register differs from the eventlog replay, the ``.bpf``- or ``.dm-verity`` keyring is not the one ``init`` froze or is- gone, a keyring holds a link ``init`` did not freeze, the config- key is gone from ``.dm-verity``, a upatch is pinned or archived- without a record of this boot, or the selected config cannot be verified- against its records.+ - The live register differs from the eventlog replay, the archive+ of a loaded XDP upatch differs from what was loaded, a loaded+ upatch is missing a link or its archive, a upatch is pinned or+ archived without a record of this boot, the selected config+ cannot be verified against its records, the ``.bpf`` or+ ``.dm-verity`` keyring is not the one ``init`` froze or is gone,+ a keyring holds a link ``init`` did not freeze, or the config key+ is gone from ``.dm-verity``.* - ``lsm-off``- The LSM link is not pinned.* - ``init-pending``diff --git a/Documentation/reference/formats/status-json.rst b/Documentation/reference/formats/status-json.rstindex 39034e4b..c34a2ff3 100644--- a/Documentation/reference/formats/status-json.rst+++ b/Documentation/reference/formats/status-json.rst@@ -62,7 +62,7 @@ determined, as noted.for ``ok``, see `Reasons`_.* - ``conditions``- array of object- - Six conditions, each with ``type``, ``status`` and ``detail``,+ - Seven conditions, each with ``type``, ``status`` and ``detail``,see `Conditions`_.* - ``lsm_attached``- boolean@@ -153,13 +153,15 @@ Verdicts* - ``status``- Condition* - ``tampered``- - The live register differs from the eventlog replay, the- ``.bpf`` or ``.dm-verity`` keyring's serial differs from the- pinned serial, a keyring ``init`` pinned is gone, a keyring holds- a link ``init`` did not freeze, the config key ``init`` froze is- gone from ``.dm-verity``, a upatch is pinned or archived without- a record of this boot, or the selected config cannot be verified against its- activation records.+ - The live register differs from the eventlog replay, the archive+ of a loaded XDP upatch differs from what was loaded, a loaded+ upatch is missing a link or its archive, a upatch is pinned or+ archived without a record of this boot, the selected config+ cannot be verified against its activation records, a keyring+ ``init`` pinned is gone, the ``.bpf`` or ``.dm-verity`` keyring's+ serial differs from the pinned serial, a keyring holds a link+ ``init`` did not freeze, or the config key ``init`` froze is gone+ from ``.dm-verity``.* - ``lsm-off``- The LSM link is not pinned. Enforcement is off.* - ``init-pending``@@ -190,6 +192,11 @@ else ``a device an XDP upatch selects does not run it``.- ``reason``* - ``tampered``- ``live register differs from the eventlog replay``+ * -+ - ``the archive of a loaded XDP upatch differs from what was+ loaded``+ * -+ - ``a loaded upatch is missing a link or its archive``* -- ``a upatch is pinned or archived without a record of this boot``* -@@ -303,6 +310,15 @@ bytes: a longer one, such as a long list of names, is cut and ends with* -- ``WARN``- ``pins not checked against the records: <error>``+ * -+ - ``WARN``+ - ``links or archives not checked: <error>``+ * -+ - ``ALERT``+ - ``<n> XDP archives differ from the loaded payload: <names>``+ * -+ - ``ALERT``+ - ``<n> upatches are missing a link or their archive: <names>``* -- ``ALERT``- ``<n> pinned or archived without a record of this boot: <names>``