t/linux: enable LoadPin LSM
The LoadPin LSM ensures that the kernel only loads files for its own use
(like firmware, modules, ...) from the root file system. This helps
prevent attacks which overlay directories with mount points.
Change-Id: Id7f8da0e6030e2a6d19fc25840063e6af56c389c
Reviewed-on: https://review.monogon.dev/c/monogon/+/835
Tested-by: Jenkins CI
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/third_party/linux/linux-metropolis.config b/third_party/linux/linux-metropolis.config
index 41defc2..bfcf771 100644
--- a/third_party/linux/linux-metropolis.config
+++ b/third_party/linux/linux-metropolis.config
@@ -3497,7 +3497,8 @@
# CONFIG_SECURITY_SMACK is not set
# CONFIG_SECURITY_TOMOYO is not set
# CONFIG_SECURITY_APPARMOR is not set
-# CONFIG_SECURITY_LOADPIN is not set
+CONFIG_SECURITY_LOADPIN=y
+CONFIG_SECURITY_LOADPIN_ENFORCE=y
# CONFIG_SECURITY_YAMA is not set
# CONFIG_SECURITY_SAFESETID is not set
CONFIG_SECURITY_LOCKDOWN_LSM=y