xref: /openbmc/linux/security/integrity/Kconfig (revision 42bbaabb)
1#
2config INTEGRITY
3	bool "Integrity subsystem"
4	depends on SECURITY
5	default y
6	help
7	  This option enables the integrity subsystem, which is comprised
8	  of a number of different components including the Integrity
9	  Measurement Architecture (IMA), Extended Verification Module
10	  (EVM), IMA-appraisal extension, digital signature verification
11	  extension and audit measurement log support.
12
13	  Each of these components can be enabled/disabled separately.
14	  Refer to the individual components for additional details.
15
16if INTEGRITY
17
18config INTEGRITY_SIGNATURE
19	bool "Digital signature verification using multiple keyrings"
20	depends on KEYS
21	default n
22	select SIGNATURE
23	help
24	  This option enables digital signature verification support
25	  using multiple keyrings. It defines separate keyrings for each
26	  of the different use cases - evm, ima, and modules.
27	  Different keyrings improves search performance, but also allow
28	  to "lock" certain keyring to prevent adding new keys.
29	  This is useful for evm and module keyrings, when keys are
30	  usually only added from initramfs.
31
32config INTEGRITY_ASYMMETRIC_KEYS
33	bool "Enable asymmetric keys support"
34	depends on INTEGRITY_SIGNATURE
35	default n
36        select ASYMMETRIC_KEY_TYPE
37        select ASYMMETRIC_PUBLIC_KEY_SUBTYPE
38        select PUBLIC_KEY_ALGO_RSA
39        select CRYPTO_RSA
40        select X509_CERTIFICATE_PARSER
41	help
42	  This option enables digital signature verification using
43	  asymmetric keys.
44
45config INTEGRITY_TRUSTED_KEYRING
46	bool "Require all keys on the integrity keyrings be signed"
47	depends on SYSTEM_TRUSTED_KEYRING
48	depends on INTEGRITY_ASYMMETRIC_KEYS
49	select KEYS_DEBUG_PROC_KEYS
50	default y
51	help
52	   This option requires that all keys added to the .ima and
53	   .evm keyrings be signed by a key on the system trusted
54	   keyring.
55
56config INTEGRITY_AUDIT
57	bool "Enables integrity auditing support "
58	depends on AUDIT
59	default y
60	help
61	  In addition to enabling integrity auditing support, this
62	  option adds a kernel parameter 'integrity_audit', which
63	  controls the level of integrity auditing messages.
64	  0 - basic integrity auditing messages (default)
65	  1 - additional integrity auditing messages
66
67	  Additional informational integrity auditing messages would
68	  be enabled by specifying 'integrity_audit=1' on the kernel
69	  command line.
70
71source security/integrity/ima/Kconfig
72source security/integrity/evm/Kconfig
73
74endif   # if INTEGRITY
75