Skip to content

eBPF-based security platform

docs: name carried kernel patches 0022 and 0023 by their numbers

Daniel Borkmanna873a90609a7
diff --git a/AGENTS.md b/AGENTS.md
index 71e436df..673c464e 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -267,7 +267,7 @@ one usually still compiles and passes tests.
authority. The seal marks what it labels at creation, what shirudo
opens and what anyone opens for writing or as a directory, and
refreshes a directory's mark in every entry hook from the label it
- reads there (carried kernel patches 0003 and 0004 make those hooks
+ reads there (carried kernel patches 0022 and 0023 make those hooks
sleepable and `dentry->d_parent` trusted), so that
`inode_init_security`, which has no dentry, labels the new inode from
it: the marks are a cache, never the decision. A sealed inode cannot
diff --git a/Documentation/concepts/background/xattrs.rst b/Documentation/concepts/background/xattrs.rst
index a8427b35..8252536a 100644
--- a/Documentation/concepts/background/xattrs.rst
+++ b/Documentation/concepts/background/xattrs.rst
@@ -189,8 +189,8 @@ dentry or a file. The hooks that decide a new entry receive the
directory they change as a ``struct inode``; its dentry is only the new
entry's ``d_parent``, a pointer the verifier does not trust. Two kernel
project patches change that (:doc:`/internals/kernel-patches`):
-0003 adds ``inode_mkdir``, ``inode_link``, ``inode_copy_up`` and the ACL
-and inode flag hooks to the sleepable set, and 0004 lets a program pass
+0022 adds ``inode_mkdir``, ``inode_link``, ``inode_copy_up`` and the ACL
+and inode flag hooks to the sleepable set, and 0023 lets a program pass
``dentry->d_parent`` to the read kfuncs. Whether a hook can read the
label it decides by, the directory's or for ``inode_copy_up`` the copied
inode's, then comes out as follows:
@@ -209,20 +209,20 @@ inode's, then comes out as follows:
- Never
* - ``inode_copy_up``
- No directory; the copied inode as a dentry
- - With 0003
- - With 0003
+ - With 0022
+ - With 0022
* - ``inode_link``, ``inode_mkdir``
- An inode, and the new entry as a dentry
- - With 0003
- - With 0003 and 0004
+ - With 0022
+ - With 0022 and 0023
* - ``inode_create``, ``inode_mknod``, ``inode_symlink``
- An inode, and the new entry as a dentry
- Yes
- - With 0004
+ - With 0023
* - ``inode_rename``
- Two inodes, and both entries as dentries
- Yes
- - With 0004
+ - With 0023
* - ``file_open``
- A file, when it opens the directory itself
- Yes
diff --git a/Documentation/internals/kernel-interfaces.rst b/Documentation/internals/kernel-interfaces.rst
index 3f0de963..81c40ecb 100644
--- a/Documentation/internals/kernel-interfaces.rst
+++ b/Documentation/internals/kernel-interfaces.rst
@@ -361,12 +361,12 @@ LSM hooks
* - ``inode_create``, ``inode_symlink``, ``inode_mknod``,
``inode_rename`` (all sleepable)
- ``seal``
- - Carried patch 0004, for the read of ``dentry->d_parent``
+ - Carried patch 0023, for the read of ``dentry->d_parent``
* - ``inode_mkdir``, ``inode_link``, ``inode_set_acl``,
``inode_remove_acl``, ``inode_file_setattr``, ``inode_copy_up``
(all sleepable)
- ``seal``
- - Carried patch 0003, and 0004 for ``inode_mkdir`` and
+ - Carried patch 0022, and 0023 for ``inode_mkdir`` and
``inode_link``
A hook the kernel's BTF lacks fails the pre-flight check