eBPF-based security platform
docs: say that init fails its pre-flight without patch 0001 or 0005
Daniel Borkmann1dd30306263d
diff --git a/Documentation/internals/kernel-interfaces.rst b/Documentation/internals/kernel-interfaces.rstindex ffba798f..3bcc9ade 100644--- a/Documentation/internals/kernel-interfaces.rst+++ b/Documentation/internals/kernel-interfaces.rst@@ -325,8 +325,9 @@ LSM hooks- Carried patch 0003, and 0004 for ``inode_mkdir`` and``inode_link``-A missing hook makes the object fail to load. :doc:`enforcement` gives-each hook's verdicts.+A hook the kernel's BTF lacks fails the pre-flight check+``kernel_lsm_hooks``, before ``init`` loads anything. :doc:`enforcement`+gives each hook's verdicts.Kfuncs and helpers------------------diff --git a/Documentation/internals/kernel-patches.rst b/Documentation/internals/kernel-patches.rstindex cc0fe53b..475e4f8a 100644--- a/Documentation/internals/kernel-patches.rst+++ b/Documentation/internals/kernel-patches.rst@@ -101,10 +101,10 @@ Why shirudo needs itcommand. :doc:`measurement-register` explains the writer.Without it- The kernel's BTF has no ``bpf_lsm_tpm_command``, so the ``bpf2``- object fails to load and ``init`` fails at "loading enforcement". The- boot is not stopped, and the target runs without enforcement, as- :doc:`boot-flow` describes.+ The kernel's BTF has no ``bpf_lsm_tpm_command``, so the pre-flight+ check ``kernel_lsm_hooks`` fails and ``init`` stops before it loads+ anything. The boot is not stopped, and the target runs without+ enforcement, as :doc:`boot-flow` describes.Label reads without the caller's permission-------------------------------------------@@ -237,9 +237,9 @@ Why shirudo needs ittoo.Without it- The ``seal`` object fails to attach the hook, and ``init`` fails at- "loading enforcement", with the result the TPM command hook- describes.+ The kernel's BTF has no ``bpf_lsm_mm_read_access``, so the pre-flight+ check ``kernel_lsm_hooks`` fails and ``init`` stops before it loads+ anything, with the result the TPM command hook describes.Related-------