[PATCH 1/2] landlock: Document TSYNC in the inheritance section

Christopher Lusk via B4 Relay devnull+clusk.northecho.dev at kernel.org
Sat Nov 28 21:30:55 UTC 2026


From: Christopher Lusk <clusk at northecho.dev>

The inheritance section says that a thread's Landlock rules are not
applied to its sibling threads, which is no longer the whole story since
LANDLOCK_RESTRICT_SELF_TSYNC (ABI 8).  Mention the flag, and that a
process forked or a program executed by a sibling before it is
restricted is not affected.

Found with LLM-driven testing of TSYNC.

Signed-off-by: Christopher Lusk <clusk at northecho.dev>
---
 Documentation/userspace-api/landlock.rst | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/userspace-api/landlock.rst b/Documentation/userspace-api/landlock.rst
index 7cc5fde48262..d40915c34cd2 100644
--- a/Documentation/userspace-api/landlock.rst
+++ b/Documentation/userspace-api/landlock.rst
@@ -467,7 +467,9 @@ Documentation/userspace-api/seccomp_filter.rst) or any other LSM dealing with
 task's :manpage:`credentials(7)`.  For instance, one process's thread may apply
 Landlock rules to itself, but they will not be automatically applied to other
 sibling threads (unlike POSIX thread credential changes, cf.
-:manpage:`nptl(7)`).
+:manpage:`nptl(7)`), unless ``LANDLOCK_RESTRICT_SELF_TSYNC`` is used.  Even
+then, a process forked or a program executed by a sibling before it is
+restricted is not affected.
 
 When a thread sandboxes itself, we have the guarantee that the related security
 policy will stay enforced on all this thread's descendants.  This allows

-- 
2.56.1





More information about the Linux-security-module-archive mailing list