Kconfig

CONFIG_INTEGRITY Integrity subsystem

On

This option enables the integrity subsystem, which is comprised of a number of different components including the Integrity Measurement Architecture (IMA), Extended Verification Module (EVM), IMA-appraisal extension, digital signature verification extension and audit measurement log support.

Each of these components can be enabled/disabled separately. Refer to the individual components for additional details.

If INTEGRITY

CONFIG_INTEGRITY_SIGNATURE Digital signature verification using multiple keyrings

On

This option enables digital signature verification support using multiple keyrings. It defines separate keyrings for each of the different use cases - evm, ima, and modules. Different keyrings improves search performance, but also allow to "lock" certain keyring to prevent adding new keys. This is useful for evm and module keyrings, when keys are usually only added from initramfs.

If INTEGRITY_SIGNATURE

CONFIG_INTEGRITY_ASYMMETRIC_KEYS Enable asymmetric keys support

On

This option enables digital signature verification using asymmetric keys.

If INTEGRITY_ASYMMETRIC_KEYS

CONFIG_INTEGRITY_PLATFORM_KEYRING Provide keyring for platform/firmware trusted keys

On

Provide a separate, distinct keyring for platform trusted keys, which the kernel automatically populates during initialization from values provided by the platform for verifying the kexec'ed kerned image and, possibly, the initramfs signature.

If INTEGRITY_MACHINE_KEYRING

CONFIG_INTEGRITY_CA_MACHINE_KEYRING Enforce Machine Keyring CA Restrictions

On

The .machine keyring can be configured to enforce CA restriction on any key added to it. By default no restrictions are in place and all Machine Owner Keys (MOK) are added to the machine keyring. If enabled only CA keys are added to the machine keyring, all other MOK keys load into the platform keyring.

If INTEGRITY_CA_MACHINE_KEYRING

CONFIG_INTEGRITY_CA_MACHINE_KEYRING_MAX Only CA keys without DigitialSignature usage set

On

When selected, only load CA keys are loaded into the machine keyring that contain the CA bit set along with the keyCertSign Usage field. Keys containing the digitialSignature Usage field will not be loaded. The remaining MOK keys are loaded into the .platform keyring.

CONFIG_INTEGRITY_AUDIT Enables integrity auditing support

On

In addition to enabling integrity auditing support, this option adds a kernel parameter 'integrity_audit', which controls the level of integrity auditing messages. 0 - basic integrity auditing messages (default) 1 - additional integrity auditing messages

Additional informational integrity auditing messages would be enabled by specifying 'integrity_audit=1' on the kernel command line.

Includesecurity/integrity/ima/Kconfig Open file
Includesecurity/integrity/evm/Kconfig Open file