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 1/2] landlock: Document TSYNC in the inheritance section
Date: Sat, 28 Nov 2026 16:30:55 -0500	[thread overview]
Message-ID: <20261128-b4-tsync-v1-1-31f0c0cef500@northecho.dev> (raw)
In-Reply-To: <20261128-b4-tsync-v1-0-31f0c0cef500@northecho.dev>

From: Christopher Lusk <clusk@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@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



  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 [PATCH 0/2] landlock: Document and test TSYNC on sibling threads Christopher Lusk via B4 Relay
2026-11-28 21:30 ` Christopher Lusk via B4 Relay [this message]
2026-11-28 21:30 ` [PATCH 2/2] selftests/landlock: Check that TSYNC restricts " 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-1-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