WSL2-Linux-Kernel/security/landlock
Mickaël Salaün a6c13d23d9 landlock: Warn once if a Landlock action is requested while disabled
[ Upstream commit 782191c74875cc33b50263e21d76080b1411884d ]

Because sandboxing can be used as an opportunistic security measure,
user space may not log unsupported features.  Let the system
administrator know if an application tries to use Landlock but failed
because it isn't enabled at boot time.  This may be caused by boot
loader configurations with outdated "lsm" kernel's command-line
parameter.

Cc: stable@vger.kernel.org
Fixes: 265885daf3 ("landlock: Add syscall implementations")
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Günther Noack <gnoack3000@gmail.com>
Link: https://lore.kernel.org/r/20240227110550.3702236-2-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-10 16:18:39 +02:00
..
Kconfig landlock: Support filesystem access-control 2021-04-22 12:22:11 -07:00
Makefile landlock: Add syscall implementations 2021-04-22 12:22:11 -07:00
common.h landlock: Set up the security framework and manage credentials 2021-04-22 12:22:10 -07:00
cred.c landlock: Format with clang-format 2022-06-09 10:23:22 +02:00
cred.h landlock: Format with clang-format 2022-06-09 10:23:22 +02:00
fs.c landlock: Fix same-layer rule unions 2022-06-09 10:23:24 +02:00
fs.h landlock: Define access_mask_t to enforce a consistent access mask size 2022-06-09 10:23:24 +02:00
limits.h landlock: Reduce the maximum number of layers to 16 2022-06-09 10:23:24 +02:00
object.c landlock: Format with clang-format 2022-06-09 10:23:22 +02:00
object.h landlock: Format with clang-format 2022-06-09 10:23:22 +02:00
ptrace.c landlock: Format with clang-format 2022-06-09 10:23:22 +02:00
ptrace.h landlock: Add ptrace restrictions 2021-04-22 12:22:10 -07:00
ruleset.c landlock: Define access_mask_t to enforce a consistent access mask size 2022-06-09 10:23:24 +02:00
ruleset.h landlock: Fix same-layer rule unions 2022-06-09 10:23:24 +02:00
setup.c landlock: Support filesystem access-control 2021-04-22 12:22:11 -07:00
setup.h landlock: Support filesystem access-control 2021-04-22 12:22:11 -07:00
syscalls.c landlock: Warn once if a Landlock action is requested while disabled 2024-04-10 16:18:39 +02:00