From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795901461; b=MSKth+ECvIwDW7i7G5z9Ku55irLdNFexguAccDjMKBIWaL04dU8jVy+u+ANr2mZeYJCh NFiAVAbdDs0/7Vt75VunoohFCyynHCGrMHbHjYDllC4Tt0jHYxCRq9lN73nR53mw1fouv 4EQt8shzGLH2LV8RhMcPWDLlc/xWFFVWsR1qov0DHozFZg5haoyDTtYuyk2vr05RRyGgO CeedfDJLWZJ93FnjaqLR+iMky8x2PR5+zzilp25/XA1oiiCRqSJUp+zTYTSvRm0mx2twQ 0aR8TtLFCkUmprBuBNuEHZVPvnmoKjvLXsf78ncKrySsO37p97yOd/CbVWgT2spJKEQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795901461; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=NsvYbUjzT9hnPh5Rjd1WhAl/WuCkdb6DIAg2dc8pVWo=; b=L2/sb2qjIDklYA2DYa7+7btnCm7HtUxeCu75l/EXxTzgas2jaUIyocVB+BVxvDXkgKtK lucjyl8DBupAiiWr1SM5451ojZ2PLj3VcFHqsa/l8Rs+geJxtxviopp6dUvroBXGDJhIn mwbM26OzJ2TvHprlGBRVOA5U47PWLeoMgnPwl0SFGgEF3jU4saQta+02mAoTSKSsCQbss fHdwko0snQ2x/7MY3jEOYDbo/U/FHgXFpZVNMkfdGYQl3itRwWiRdYwGW1yC89zfySrcD zzs/qkmdGE+J17wq9oFbISopBJcESI4WKGjKuQJCKMmljiiiB11zVAysUbd681ZOPSA== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Hbcj5HZn; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 19BE4606A31C; Sat, 28 Nov 2026 21:31:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Hbcj5HZn Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795901460; b=DxK5J+Pt3L3cgl84w+Par0ZczT7T1+gSQfjQXrfRrPPcZpmtMINd8UJpltISY8C5xd/G Xq7lSXJ2mp8yF2le6n2tcvIGzogZKA36F8eXx5aZZ9UI6zFBpqlS3MJdMpTbmD4vCmAza icMjdhsXibXd+jm7GEuddhiB8c2DFp6vB0lp7z0qBMljnEGie0id7udgWwEOoWaIxvZny l7RihaxSk2zQ2766NVMOpl+4GAmG0Z+s4wo+zzshhVWhRxEQy6JjoPQnkC/Uuk5Pdkr/H 2oi4W8EtuiPk6Hb8BEvHxW7dlJUOFYE21fAeHdYnJWxDx9zRpuYOrZ7W4nTroDZa11g== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795901460; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=NsvYbUjzT9hnPh5Rjd1WhAl/WuCkdb6DIAg2dc8pVWo=; b=gZ6bVuM4j47e/QzvJ4uv/tdbvij2nD1InVotsLmRsr188nWREaX0b5d5j1KA7aE6sdg6 VIri85Mt3kKLnp/LWQH17flQamDFYDQtj+wxLI5TA7ojMOXBmNA1B35JOtsZks7k389JO qFpAE3ZyOh2Uzj3B6+oE4B/b5muozo11hzahYzophmiwgrOjLqto62CLWmqpDBEE9ipUy 7nBWfJZ2FkomGbMSiEaCaJeSd2mxHnGah1v8O6V+ChOPMKeBZ+AU8ZcEj821gH/859NK+ jBngV3Tp6WK6snT8rtB+yhSmPIFK8T+MNj1W1TXxvpvOBhJEwwyzQxXxvz+04tb3rHw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id ECB671F000C1; Sat, 28 Nov 2026 21:30:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795901460; bh=NsvYbUjzT9hnPh5Rjd1WhAl/WuCkdb6DIAg2dc8pVWo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=Hbcj5HZncMseULL7FOx16BUeAAsPBpGt3VRjG3ThSBPNUGF/VvZhN9JI+3cZw1l+5 VaupCZG2GlnIaX1Ufpe35yXTmcGp6C4yCjWsXjUf2pUs9EZ/yNxnBt5XciPsSfz+sc I8voE7ZLhGNmBrSMXLq/WcFlf2UESOs2hkyYewVnzvOe5T6PGGUADdXr6B882SnEPJ aSjZjB3gyYGDOYT5+NExRn/mejTiWso9xSJODzneREwe+vYlOE/vjf9c6bAb6i1juM 8dGSdftIwkCNixR7a5Z0/7Myos7Az7KLoSmmAgJlohsNJ5qhAWDI/YzbnMvL9tkwjS sxoJFwEkell/Q== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 727364E247; Sat, 28 Nov 2026 21:30:59 +0000 (UTC) From: Christopher Lusk via B4 Relay Date: Sat, 28 Nov 2026 16:30:55 -0500 Subject: [PATCH 1/2] landlock: Document TSYNC in the inheritance section X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261128-b4-tsync-v1-1-31f0c0cef500@northecho.dev> References: <20261128-b4-tsync-v1-0-31f0c0cef500@northecho.dev> In-Reply-To: <20261128-b4-tsync-v1-0-31f0c0cef500@northecho.dev> To: =?utf-8?q?Micka=C3=ABl_Sala=C3=BCn?= Cc: =?utf-8?q?G=C3=BCnther_Noack?= , Jonathan Corbet , Shuah Khan , Randy Dunlap , linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Christopher Lusk X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795901459; l=1451; i=clusk@northecho.dev; s=20261128; h=from:subject:message-id; bh=+u382Ep/wjkZBF5qzyvIbk+4xB01ZtYook7uDk9DTUI=; b=LSZOhvsDIGLPBjGhlZIvoerNQ68m2HHyig4Cs5XyCPQjVHTz0TmABDfZBGJt9RNUcIqtEBISn q3o2+QxasQqAkg3echacNIQqrDo0NjFmkmYy42eKrwq5ZDXoZ3JdHRB X-Developer-Key: i=clusk@northecho.dev; a=ed25519; pk=ZM3GLuxrIQN40dt+s1cLwHjpuFeiMfiEYnQ/qyYhVGo= X-Endpoint-Received: by B4 Relay for clusk@northecho.dev/20261128 with auth_id=1681 X-Original-From: Christopher Lusk Reply-To: clusk@northecho.dev Content-Transfer-Encoding: 7bit From: Christopher Lusk 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 --- 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