Skip to content

Enable Landlock by default

Mickaël Salaün landlock 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1UBUNTU: [Config] Enable Landlock by defaultdebian.master/config/config.common.ubuntu+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/1] Enable Landlock by default

Hi,

The Landlock security feature is built in Ubuntu kernel since 5.13 which is great! However, it is not enough to enable the CONFIG_SECURITY_LANDLOCK option as described in the related help. The CONFIG_LSM option needs to be prepended by "landlock," to make Landlock system calls available without modifying the kernel boot arguments.

Could you please apply the attached patch to make this feature more broadly available?

This can be validated with the tests provided by the kernel sources:

fakeroot make -C tools/testing/selftests TARGETS=landlock gen_tar tar -xf tools/testing/selftests/kselftest_install/kselftest-packages/kselftest.tar.gz

# as root:
./run_kselftest.sh

If Yama is enabled, half of the ptrace tests may failed, which is OK.

Regards,

Mickaël Salaün (1):
UBUNTU: [Config] Enable Landlock by default

 debian.master/config/config.common.ubuntu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

base-commit: 86d5f4d4ce66d96657de67b735dacb25b8ab8a1b

Signature · 1 line
2.33.1