eBPF-based security platform
Documentation: write shirudo and upatches in lower case on the policy pages
Daniel Borkmanncad37f7d881c
diff --git a/Documentation/contribute/testing/test-coverage.rst b/Documentation/contribute/testing/test-coverage.rstindex 8ccc2e03..6b518498 100644--- a/Documentation/contribute/testing/test-coverage.rst+++ b/Documentation/contribute/testing/test-coverage.rst@@ -603,7 +603,7 @@ Coverage by area``t7103``, ``t9105``. Fuzz: ``tree``, ``tree-state``,``kconfig``. Unit: ``kernel_build_id``, ``kernel_release``* - Policy labels- - Upatch labels and Beefile serialization: ``t3109``, ``t7006``.+ - upatch labels and Beefile serialization: ``t3109``, ``t7006``.Unauthorized policy-xattr changes: ``t6111``. Task and socketinheritance: ``t6141``, ``t6142``* - Telemetrydiff --git a/Documentation/internals/signed-loader.rst b/Documentation/internals/signed-loader.rstindex 3b382df5..ba72232f 100644--- a/Documentation/internals/signed-loader.rst+++ b/Documentation/internals/signed-loader.rst@@ -117,7 +117,7 @@ loader inside the kernel, which ``lsm/bpf`` sees with ``kernel`` true.- ``BPF_PROG_TEST_RUN`` of the loader- ``lsm/bpf``, runtime authority (``ProgRun``). The loader thenruns in the kernel. When the signed ``SHPL`` section is present,- Shirudo opens its pinned ``policy_map`` and+ shirudo opens its pinned ``policy_map`` and``socket_policy_map`` and supplies both FDs at their signeddescriptor indices. The generated loader reuses them; it neithercreates nor pins private copies.diff --git a/Documentation/reference/formats/upatch-format.rst b/Documentation/reference/formats/upatch-format.rstindex 4fb2322c..a6f49f92 100644--- a/Documentation/reference/formats/upatch-format.rst+++ b/Documentation/reference/formats/upatch-format.rst@@ -590,8 +590,8 @@ fixed-size entries. ``policy_map_idx`` and ``socket_policy_map_idx`` arethe zero-based indices of the shared maps in the loader's map descriptorarray. The builder accepts this section only when the BPF object declarescompatible maps named ``policy_map`` and ``socket_policy_map``. At load-time, Shirudo supplies the pinned task and socket storage maps at those-descriptors; the loader does not create or pin private copies. Upatches+time, shirudo supplies the pinned task and socket storage maps at those+descriptors; the loader does not create or pin private copies. upatcheswithout ``SHPL`` use their normal maps... list-table::diff --git a/Documentation/security/threat-model.rst b/Documentation/security/threat-model.rstindex 2084b86c..5a311209 100644--- a/Documentation/security/threat-model.rst+++ b/Documentation/security/threat-model.rst@@ -678,7 +678,7 @@ declarations, and the target supplies both pinned map FDs to thegenerated loader. The upatch's signed BPF programs can inspect task andsocket policy values at any supported LSM hook. Authors are expected toread these values; the verifier does not prevent signed programs from-changing them. Upatches without ``SHPL`` receive no binding to these+changing them. upatches without ``SHPL`` receive no binding to thesemaps.The seal keeps a mark in inode storage on every labeled directory itdiff --git a/Documentation/upatches/publish/beefile.rst b/Documentation/upatches/publish/beefile.rstindex 8c0aff36..e97e2412 100644--- a/Documentation/upatches/publish/beefile.rst+++ b/Documentation/upatches/publish/beefile.rst@@ -209,7 +209,7 @@ has fails. Entries that share a name must name the same input.A policy table declares a named bit and the absolute paths whose``security.bpf.shirudo.policy`` xattrs this upatch labels. The builderembeds the entries in the signed ``SHPL`` section. Its presence opts the-upatch into Shirudo's shared task ``policy_map`` and socket+upatch into shirudo's shared task ``policy_map`` and socket``socket_policy_map``. The generated loader reuses both pinned mapsrather than creating private copies. The BPF source must declare the mapABI, normally by including ``shirudo_policy_map.h`` after ``vmlinux.h``@@ -229,7 +229,7 @@ non-executable files.For an upatch with at least one policy table, include``shirudo_policy_map.h`` in its BPF source so it declares both shared maps-with the required ABI. The header is installed beside the Shirudo BPF+with the required ABI. The header is installed beside the shirudo BPFheaders. The signed ``SHPL`` section opts the upatch into these bindings;declaring the maps without policy tables leaves them as ordinaryupatch-owned maps. Signed BPF programs can write the maps, so enforcement