Kconfig

CONFIG_SECURITY_LOCKDOWN_LSM Basic module for enforcing kernel lockdown

On

Build support for an LSM that enforces a coarse kernel lockdown behaviour.

If SECURITY_LOCKDOWN_LSM

CONFIG_SECURITY_LOCKDOWN_LSM_EARLY Enable lockdown LSM early in init

On

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

On

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

Off

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

Off

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.

End of Kernel default lockdown mode