eBPF-based security platform
docs: link the carried kernel patches by number in the requirements
Daniel Borkmann6791a70c2a93
diff --git a/Documentation/_ext/shirudo_docs.py b/Documentation/_ext/shirudo_docs.pyindex d192bb15..685454d2 100644--- a/Documentation/_ext/shirudo_docs.py+++ b/Documentation/_ext/shirudo_docs.py@@ -16,6 +16,7 @@ from docutils import nodesfrom pygments.lexer import RegexLexer, bygroups, default, usingfrom pygments.lexers.shell import BashLexerfrom pygments.token import Generic, Whitespace+from sphinx.util.nodes import split_explicit_title# "operator$ " runs on the operator host, "target# " as root on a target,@@ -169,13 +170,14 @@ def write_llms(app, exception):# :src:`path` shows a path of the repository as code and links it on-# GitHub. A path the checkout does not have is reported, so that a file-# moved or removed cannot leave a dead link behind.+# GitHub, and :src:`title <path>` shows the title instead. A path the+# checkout does not have is reported, so that a file moved or removed+# cannot leave a dead link behind.def src_role(name, rawtext, text, lineno, inliner, options=None,content=None):env = inliner.document.settings.envcontext = env.config.html_context- path = text.strip()+ _, title, path = split_explicit_title(text.strip())local = os.path.join(os.path.dirname(os.path.abspath(env.srcdir)),path.rstrip("/"))messages = []@@ -186,7 +188,7 @@ def src_role(name, rawtext, text, lineno, inliner, options=None,url = "%s/%s/%s/%s" % (context["repository"], kind, context["branch"],path)node = nodes.reference(rawtext, "", refuri=url)- node += nodes.literal(path, path)+ node += nodes.literal(title, title)return [node], messagesdiff --git a/Documentation/operate/plan/system-requirements.rst b/Documentation/operate/plan/system-requirements.rstindex 6f273aa4..991e3cdc 100644--- a/Documentation/operate/plan/system-requirements.rst+++ b/Documentation/operate/plan/system-requirements.rst@@ -75,28 +75,28 @@ Kernel sourcewith gcc 13 and ``CONFIG_CC_OPTIMIZE_FOR_SIZE=y``). Unloading anupatch detaches its programs from hooks that other programsshare. Apply it to an x86-64 tree that predates it.- * - :src:`kernel/0001-tpm-Let-LSMs-inspect-userspace-commands.patch`+ * - :src:`kernel/0001 <kernel/0001-tpm-Let-LSMs-inspect-userspace-commands.patch>`- Adds the ``tpm_command`` LSM hook. ``shirudo init`` attaches``lsm/tpm_command`` to refuse an untrusted ``TPM2_NV_Extend`` ofits register and fails without the hook.- * - :src:`kernel/0002-bpf-Read-security.bpf-xattrs-for-LSM-programs-without-the-caller-s-permission.patch`+ * - :src:`kernel/0002 <kernel/0002-bpf-Read-security.bpf-xattrs-for-LSM-programs-without-the-caller-s-permission.patch>`- Lets an LSM program read a ``security.bpf.`` xattr without thecalling task's read permission on the inode, as the in-kernelLSMs read their labels. Without it the seal takes a label itscaller may not read for a missing one unless the inode carries amark, which root can arrange with an idmapped mount or an ACL.- * - :src:`kernel/0003-bpf-Let-sleepable-LSM-programs-attach-to-the-remaining-inode-hooks.patch`+ * - :src:`kernel/0003 <kernel/0003-bpf-Let-sleepable-LSM-programs-attach-to-the-remaining-inode-hooks.patch>`- Lets a sleepable LSM program attach to ``inode_mkdir``,``inode_link``, ``inode_set_acl``, ``inode_remove_acl``,``inode_file_setattr`` and ``inode_copy_up``. The seal readslabels in those hooks and ``shirudo init`` fails to attach themwithout it.- * - :src:`kernel/0004-bpf-Treat-dentry-d_parent-as-a-trusted-pointer.patch`+ * - :src:`kernel/0004 <kernel/0004-bpf-Treat-dentry-d_parent-as-a-trusted-pointer.patch>`- Lets an LSM program pass ``dentry->d_parent`` to the xattr kfunc.The seal reads the label of the directory a new entry goes intofrom it; without the patch the verifier refuses the seal's entryhooks.- * - :src:`kernel/0005-mm-Let-LSMs-check-read-only-remote-mm-access-under-CAP_PERFMON.patch`+ * - :src:`kernel/0005 <kernel/0005-mm-Let-LSMs-check-read-only-remote-mm-access-under-CAP_PERFMON.patch>`- Adds the ``mm_read_access`` LSM hook, which ``mm_access()`` asksbefore it grants a read-only access to another task's memory to``CAP_PERFMON``. The seal refuses a task with runtime authority