Commit acda20ad authored by Mickaël Salaün's avatar Mickaël Salaün Committed by Greg Kroah-Hartman
Browse files

landlock: Warn once if a Landlock action is requested while disabled



[ Upstream commit 782191c7 ]

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: 265885da ("landlock: Add syscall implementations")
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Reviewed-by: default avatarGünther Noack <gnoack3000@gmail.com>
Link: https://lore.kernel.org/r/20240227110550.3702236-2-mic@digikod.net


Signed-off-by: default avatarMickaël Salaün <mic@digikod.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 03f58a64
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment