Linux Security Modules development
 help / color / mirror / Atom feed
From: Christopher Lusk via B4 Relay <devnull+clusk.northecho.dev@kernel.org>
To: "Mickaël Salaün" <mic@digikod.net>
Cc: "Günther Noack" <gnoack@google.com>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Shuah Khan" <skhan@linuxfoundation.org>,
	"Randy Dunlap" <rdunlap@infradead.org>,
	linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org,
	linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Christopher Lusk" <clusk@northecho.dev>
Subject: [PATCH 0/2] landlock: Document and test TSYNC on sibling threads
Date: Sat, 28 Nov 2026 16:30:54 -0500	[thread overview]
Message-ID: <20261128-b4-tsync-v1-0-31f0c0cef500@northecho.dev> (raw)

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>



             reply	other threads:[~2026-11-28 21:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 21:30 Christopher Lusk via B4 Relay [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261128-b4-tsync-v1-0-31f0c0cef500@northecho.dev \
    --to=devnull+clusk.northecho.dev@kernel.org \
    --cc=clusk@northecho.dev \
    --cc=corbet@lwn.net \
    --cc=gnoack@google.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=mic@digikod.net \
    --cc=rdunlap@infradead.org \
    --cc=skhan@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox