CONFIG_SECURITY_LOCKDOWN_LSM Basic module for enforcing kernel lockdown
Build support for an LSM that enforces a coarse kernel lockdown behaviour.
- Depends on
SECURITY - Selects
MODULE_SIG if SECURITY &&
If SECURITY_LOCKDOWN_LSM
CONFIG_SECURITY_LOCKDOWN_LSM_EARLY Enable lockdown LSM early in init
Enable the lockdown LSM early in boot. This is necessary in order to ensure that lockdown enforcement can be carried out on kernel boot parameters that are otherwise parsed before the security subsystem is fully initialised. If enabled, lockdown will unconditionally be called before any other LSMs.
Kernel default lockdown mode
The kernel can be configured to default to differing levels of lockdown.
CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE None
No lockdown functionality is enabled by default. Lockdown may be enabled via the kernel commandline or /sys/kernel/security/lockdown.
CONFIG_LOCK_DOWN_KERNEL_FORCE_INTEGRITY Integrity
The kernel runs in integrity mode by default. Features that allow the kernel to be modified at runtime are disabled.
CONFIG_LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY Confidentiality
The kernel runs in confidentiality mode by default. Features that allow the kernel to be modified at runtime or that permit userland code to read confidential material held inside the kernel are disabled.