loadpin: Prevent SECURITY_LOADPIN_ENFORCE=y without module decompression
authorStephen Boyd <swboyd@chromium.org>
Tue, 14 May 2024 22:48:38 +0000 (15:48 -0700)
committerKees Cook <keescook@chromium.org>
Sat, 18 May 2024 20:46:10 +0000 (13:46 -0700)
commitce0d73ef8dea52d7253bdc2fd3cc3e89d7089ded
tree5e03fc3f81a8a287e32cb08c8d5b028e03a4cecf
parent6d305cbef1aa01b9714e01e35f3d5c28544cf04d
loadpin: Prevent SECURITY_LOADPIN_ENFORCE=y without module decompression

If modules are built compressed, and LoadPin is enforcing by default, we
must have in-kernel module decompression enabled (MODULE_DECOMPRESS).
Modules will fail to load without decompression built into the kernel
because they'll be blocked by LoadPin. Add a depends on clause to
prevent this combination.

Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20240514224839.2526112-1-swboyd@chromium.org
Signed-off-by: Kees Cook <keescook@chromium.org>
security/loadpin/Kconfig