From nobody Wed Dec 17 12:27:25 2025 Received: from smtp-42aa.mail.infomaniak.ch (smtp-42aa.mail.infomaniak.ch [84.16.66.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48816211463 for ; Tue, 18 Mar 2025 16:15:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=84.16.66.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742314506; cv=none; b=hHLa7C65cDr0q3zlWqFRf8/AVPcCb1qkEIl18tN4yCmdSYBhz7sf5nxasGNy9aWrC1Oe3OLKsuAoMpOVWU7XjqXmU4v1Ls8GcOXezDfCavew3op8dWVmMYX8HnRk1UX0ESgZJlu40sNogr7yi9eByBKLuQDgmyt4ej4t3/W864A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742314506; c=relaxed/simple; bh=JIXfcRnOc2NsgTREu0brY0eFsywSqCuOtFh/aDiOzuE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XbcJSo9neOS/PlDH89zD5jyaB3f/OFPc5qsPvUhva05vzSo2fpijY0/GZIESBNToDTbYpbaSq0KFQD8aUiVRCrVriAI/H4Q9ox46y7YqmNdhEv57q62arLzm4XXf5YqOOFZBV9pXmQJikQvIIH6JimD/jMZMg5UYMPK6RChaj3c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net; spf=pass smtp.mailfrom=digikod.net; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b=vg9QND59; arc=none smtp.client-ip=84.16.66.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=digikod.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b="vg9QND59" Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4ZHH4540cGzFpr; Tue, 18 Mar 2025 17:15:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digikod.net; s=20191114; t=1742314501; bh=TAanqdbmi/XehtIUQzZvwwXbsMighDnqKc1rhhGRDAA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vg9QND59PMWzfBPWgQ7qHUm2QRgBm38IISEoW272yiB4ftP2voTwZC6yP1S/ZY+Pm G+yqZJq9MMNZFXw800mqKfRbg60xjaj0kuUWfpWgd+m+GV2iUaHRh79QG/bdbVRz57 6k27WtDvY5L++56zwaiSP9szNgm/ZCKU3VQEaHUc= Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4ZHH446ZD2zHwt; Tue, 18 Mar 2025 17:15:00 +0100 (CET) From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= To: Dan Carpenter , =?UTF-8?q?G=C3=BCnther=20Noack?= , Paul Moore , "Serge E . Hallyn" Cc: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , Christian Brauner , Jann Horn , Jeff Xu , Kees Cook , Mikhail Ivanov , Tahera Fahimi , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: [PATCH v2 8/8] landlock: Document errata Date: Tue, 18 Mar 2025 17:14:43 +0100 Message-ID: <20250318161443.279194-9-mic@digikod.net> In-Reply-To: <20250318161443.279194-1-mic@digikod.net> References: <20250318161443.279194-1-mic@digikod.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Infomaniak-Routing: alpha Explain errata use case and include documentation from each errata file. This is a dedicated commit to avoid backporting issues. Cc: G=C3=BCnther Noack Cc: Mikhail Ivanov Cc: Tahera Fahimi Signed-off-by: Micka=C3=ABl Sala=C3=BCn Link: https://lore.kernel.org/r/20250318161443.279194-9-mic@digikod.net --- Changes since v1: - New patch. --- Documentation/userspace-api/landlock.rst | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Documentation/userspace-api/landlock.rst b/Documentation/users= pace-api/landlock.rst index ad587f53fe41..80b090729975 100644 --- a/Documentation/userspace-api/landlock.rst +++ b/Documentation/userspace-api/landlock.rst @@ -8,7 +8,7 @@ Landlock: unprivileged access control =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 :Author: Micka=C3=ABl Sala=C3=BCn -:Date: January 2025 +:Date: March 2025 =20 The goal of Landlock is to enable restriction of ambient rights (e.g. glob= al filesystem or network access) for a set of processes. Because Landlock @@ -663,6 +663,28 @@ To be able to explicitly allow TCP operations (e.g., a= dding a network rule with ``EAFNOSUPPORT`` error, which can safely be ignored because this kind of T= CP operation is already not possible. =20 +Errata +=3D=3D=3D=3D=3D=3D + +These errata identify visible fixes (e.g., loosen restrictions) that shoul= d be +applied to any kernel according to their supported Landlock ABI. Because = user +space updates and kernel updates might not be applied at the same time, us= er +space may need to check if specific features are fixed and can now be leve= raged +with the running kernel. To get these errata, use the +``LANDLOCK_CREATE_RULESET_ERRATA`` flag with sys_landlock_create_ruleset(). + +ABI v4 +------ + +.. kernel-doc:: security/landlock/errata/abi-4.h + :identifiers: erratum_1 + +ABI v6 +------ + +.. kernel-doc:: security/landlock/errata/abi-6.h + :identifiers: erratum_2 + Questions and answers =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 --=20 2.48.1