Linux Security Modules development
 help / color / mirror / Atom feed
* [PATCH 0/2] landlock: Document and test TSYNC on sibling threads
@ 2026-11-28 21:30 Christopher Lusk via B4 Relay
  2026-11-28 21:30 ` [PATCH 1/2] landlock: Document TSYNC in the inheritance section Christopher Lusk via B4 Relay
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Christopher Lusk via B4 Relay @ 2026-11-28 21:30 UTC (permalink / raw)
  To: Mickaël Salaün
  Cc: Günther Noack, Jonathan Corbet, Shuah Khan, Randy Dunlap,
	linux-security-module, linux-doc, linux-kselftest, linux-kernel,
	Christopher Lusk

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@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@northecho.dev>



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-28 21:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28 21:30 [PATCH 0/2] landlock: Document and test TSYNC on sibling threads Christopher Lusk via B4 Relay
2026-11-28 21:30 ` [PATCH 1/2] landlock: Document TSYNC in the inheritance section Christopher Lusk via B4 Relay
2026-11-28 21:30 ` [PATCH 2/2] selftests/landlock: Check that TSYNC restricts sibling threads Christopher Lusk via B4 Relay
2026-11-28 21:41   ` sashiko-bot
2026-11-28 21:41 ` [PATCH 0/2] landlock: Document and test TSYNC on " sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox