xref: /openbmc/linux/security/integrity/Kconfig (revision 8636a1f9)
1f381c272SMimi Zohar#
2f381c272SMimi Zoharconfig INTEGRITY
37ef84e65SDmitry Kasatkin	bool "Integrity subsystem"
47ef84e65SDmitry Kasatkin	depends on SECURITY
57ef84e65SDmitry Kasatkin	default y
67ef84e65SDmitry Kasatkin	help
77ef84e65SDmitry Kasatkin	  This option enables the integrity subsystem, which is comprised
87ef84e65SDmitry Kasatkin	  of a number of different components including the Integrity
97ef84e65SDmitry Kasatkin	  Measurement Architecture (IMA), Extended Verification Module
107ef84e65SDmitry Kasatkin	  (EVM), IMA-appraisal extension, digital signature verification
117ef84e65SDmitry Kasatkin	  extension and audit measurement log support.
127ef84e65SDmitry Kasatkin
137ef84e65SDmitry Kasatkin	  Each of these components can be enabled/disabled separately.
147ef84e65SDmitry Kasatkin	  Refer to the individual components for additional details.
157ef84e65SDmitry Kasatkin
167ef84e65SDmitry Kasatkinif INTEGRITY
17f381c272SMimi Zohar
18f1be242cSDmitry Kasatkinconfig INTEGRITY_SIGNATURE
196341e62bSChristoph Jaeger	bool "Digital signature verification using multiple keyrings"
207ef84e65SDmitry Kasatkin	depends on KEYS
218607c501SDmitry Kasatkin	default n
225e8898e9SDmitry Kasatkin	select SIGNATURE
238607c501SDmitry Kasatkin	help
248607c501SDmitry Kasatkin	  This option enables digital signature verification support
258607c501SDmitry Kasatkin	  using multiple keyrings. It defines separate keyrings for each
268607c501SDmitry Kasatkin	  of the different use cases - evm, ima, and modules.
278607c501SDmitry Kasatkin	  Different keyrings improves search performance, but also allow
288607c501SDmitry Kasatkin	  to "lock" certain keyring to prevent adding new keys.
298607c501SDmitry Kasatkin	  This is useful for evm and module keyrings, when keys are
308607c501SDmitry Kasatkin	  usually only added from initramfs.
318607c501SDmitry Kasatkin
321ae8f41cSDmitry Kasatkinconfig INTEGRITY_ASYMMETRIC_KEYS
336341e62bSChristoph Jaeger	bool "Enable asymmetric keys support"
341ae8f41cSDmitry Kasatkin	depends on INTEGRITY_SIGNATURE
351ae8f41cSDmitry Kasatkin	default n
361ae8f41cSDmitry Kasatkin        select ASYMMETRIC_KEY_TYPE
371ae8f41cSDmitry Kasatkin        select ASYMMETRIC_PUBLIC_KEY_SUBTYPE
38eb5798f2STadeusz Struk        select CRYPTO_RSA
391ae8f41cSDmitry Kasatkin        select X509_CERTIFICATE_PARSER
401ae8f41cSDmitry Kasatkin	help
411ae8f41cSDmitry Kasatkin	  This option enables digital signature verification using
421ae8f41cSDmitry Kasatkin	  asymmetric keys.
431ae8f41cSDmitry Kasatkin
44f4dc3778SDmitry Kasatkinconfig INTEGRITY_TRUSTED_KEYRING
45f4dc3778SDmitry Kasatkin	bool "Require all keys on the integrity keyrings be signed"
46f4dc3778SDmitry Kasatkin	depends on SYSTEM_TRUSTED_KEYRING
47f4dc3778SDmitry Kasatkin	depends on INTEGRITY_ASYMMETRIC_KEYS
48f4dc3778SDmitry Kasatkin	default y
49f4dc3778SDmitry Kasatkin	help
50f4dc3778SDmitry Kasatkin	   This option requires that all keys added to the .ima and
51f4dc3778SDmitry Kasatkin	   .evm keyrings be signed by a key on the system trusted
52f4dc3778SDmitry Kasatkin	   keyring.
53f4dc3778SDmitry Kasatkin
54d726d8d7SMimi Zoharconfig INTEGRITY_AUDIT
55d726d8d7SMimi Zohar	bool "Enables integrity auditing support "
567ef84e65SDmitry Kasatkin	depends on AUDIT
57d726d8d7SMimi Zohar	default y
58d726d8d7SMimi Zohar	help
59d726d8d7SMimi Zohar	  In addition to enabling integrity auditing support, this
60d726d8d7SMimi Zohar	  option adds a kernel parameter 'integrity_audit', which
61d726d8d7SMimi Zohar	  controls the level of integrity auditing messages.
62d726d8d7SMimi Zohar	  0 - basic integrity auditing messages (default)
63d726d8d7SMimi Zohar	  1 - additional integrity auditing messages
64d726d8d7SMimi Zohar
65d726d8d7SMimi Zohar	  Additional informational integrity auditing messages would
66d726d8d7SMimi Zohar	  be enabled by specifying 'integrity_audit=1' on the kernel
67d726d8d7SMimi Zohar	  command line.
68d726d8d7SMimi Zohar
698636a1f9SMasahiro Yamadasource "security/integrity/ima/Kconfig"
708636a1f9SMasahiro Yamadasource "security/integrity/evm/Kconfig"
717ef84e65SDmitry Kasatkin
727ef84e65SDmitry Kasatkinendif   # if INTEGRITY
73