From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH 19/21] linux: Enable Landlock support Date: Mon, 26 Dec 2022 19:30:54 +0000 Message-ID: <6f89772f-8082-e4bd-d2eb-8c0a16f00a42@ipfire.org> In-Reply-To: <0e60a1de-6210-835e-54a4-ec5e3128e42e@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4088708714497276284==" List-Id: --===============4088708714497276284== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable >>From the kernel's documentation: > 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(). There is no harm in enabling this security feature, so applications supporting Landlock can benefit from it. Rolled forward from https://patchwork.ipfire.org/project/ipfire/patch/d7ac0ca= f-5a7c-bcca-6293-16c773523942(a)ipfire.org/ to submit all kernel-related changes as a single patchset. Reviewed-by: Michael Tremer Signed-off-by: Peter M=C3=BCller --- config/kernel/kernel.config.x86_64-ipfire | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kernel= .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 --===============4088708714497276284==--