[PATCH 0/2] landlock: Document and test TSYNC on sibling threads

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


The inheritance section of the userspace API guide still says that a
thread's rules are not applied to its sibling threads.  Patch 1 mentions
LANDLOCK_RESTRICT_SELF_TSYNC there, and that a process forked or a
program executed by a sibling before it is restricted is not affected.

Patch 2 checks that the siblings are actually restricted, including one
that switched UID with the raw setresuid(2).  The existing tests only
check the return value and no_new_privs.

Based on the Landlock next branch.  tsync_test passes 14/14 there and on
v7.4-rc4; without TSYNC, both new variants fail.  I did not build the
HTML documentation.

Found and drafted with LLM assistance, in QEMU experiments; I reviewed,
tested and edited the patches.

Signed-off-by: Christopher Lusk <clusk at northecho.dev>
---
Christopher Lusk (2):
      landlock: Document TSYNC in the inheritance section
      selftests/landlock: Check that TSYNC restricts sibling threads

 Documentation/userspace-api/landlock.rst      |   4 +-
 tools/testing/selftests/landlock/tsync_test.c | 129 ++++++++++++++++++++++++++
 2 files changed, 132 insertions(+), 1 deletion(-)
---
base-commit: bb872036147b78498276986ac54634fbc609efa3
change-id: 20261128-b4-tsync-9d29944741e7

Best regards,
-- 
Christopher Lusk <clusk at northecho.dev>





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