From mboxrd@z Thu Jan  1 00:00:00 1970
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH 19/21] linux: Enable Landlock support
Date: Tue, 27 Dec 2022 12:36:21 +0100
Message-ID: <ECF16A89-1CBE-4FA7-8005-A0399704708A@ipfire.org>
In-Reply-To: <6f89772f-8082-e4bd-d2eb-8c0a16f00a42@ipfire.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============8221327407916748133=="
List-Id: <development.lists.ipfire.org>

--===============8221327407916748133==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

I believe that nothing will use this, yet, so it should not break anything tu=
rning it on:

Acked-by: Michael Tremer <michael.tremer(a)ipfire.org>

> On 26 Dec 2022, at 20:30, Peter M=C3=BCller <peter.mueller(a)ipfire.org> wr=
ote:
>=20
> From the kernel's documentation:
>=20
>> Landlock is a sandboxing mechanism that enables processes to restrict
>> themselves (and their future children) by gradually enforcing
>> tailored access control policies. A Landlock security policy is a
>> set of access rights (e.g. open a file in read-only, make a
>> directory, etc.) tied to a file hierarchy. Such policy can be
>> configured and enforced by any processes for themselves using the
>> dedicated system calls: landlock_create_ruleset(),
>> landlock_add_rule(), and landlock_restrict_self().
>=20
> There is no harm in enabling this security feature, so applications
> supporting Landlock can benefit from it.
>=20
> Rolled forward from https://patchwork.ipfire.org/project/ipfire/patch/d7ac0=
caf-5a7c-bcca-6293-16c773523942(a)ipfire.org/
> to submit all kernel-related changes as a single patchset.
>=20
> Reviewed-by: Michael Tremer <michael.tremer(a)ipfire.org>
> Signed-off-by: Peter M=C3=BCller <peter.mueller(a)ipfire.org>
> ---
> config/kernel/kernel.config.x86_64-ipfire | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>=20
> diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kern=
el.config.x86_64-ipfire
> index 3d9e01e38..3bdbf3476 100644
> --- a/config/kernel/kernel.config.x86_64-ipfire
> +++ b/config/kernel/kernel.config.x86_64-ipfire
> @@ -6874,7 +6874,7 @@ CONFIG_SECURITY_DMESG_RESTRICT=3Dy
> CONFIG_SECURITY=3Dy
> CONFIG_SECURITYFS=3Dy
> # CONFIG_SECURITY_NETWORK is not set
> -# CONFIG_SECURITY_PATH is not set
> +CONFIG_SECURITY_PATH=3Dy
> # CONFIG_INTEL_TXT is not set
> CONFIG_HAVE_HARDENED_USERCOPY_ALLOCATOR=3Dy
> CONFIG_HARDENED_USERCOPY=3Dy
> @@ -6893,7 +6893,7 @@ CONFIG_SECURITY_LOCKDOWN_LSM_EARLY=3Dy
> CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE=3Dy
> # CONFIG_LOCK_DOWN_KERNEL_FORCE_INTEGRITY is not set
> # CONFIG_LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY is not set
> -# CONFIG_SECURITY_LANDLOCK is not set
> +CONFIG_SECURITY_LANDLOCK=3Dy
> CONFIG_INTEGRITY=3Dy
> # CONFIG_INTEGRITY_SIGNATURE is not set
> # CONFIG_IMA is not set
> --=20
> 2.35.3


--===============8221327407916748133==--