xref: /linux/security/integrity/ima/Kconfig (revision 4d7d9486c04d917265f64c55bd23b2cc4fe7749c)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
23323eec9SMimi Zohar# IBM Integrity Measurement Architecture
33323eec9SMimi Zohar#
43323eec9SMimi Zoharconfig IMA
53323eec9SMimi Zohar	bool "Integrity Measurement Architecture(IMA)"
63323eec9SMimi Zohar	select SECURITYFS
73323eec9SMimi Zohar	select CRYPTO
83323eec9SMimi Zohar	select CRYPTO_HMAC
93323eec9SMimi Zohar	select CRYPTO_SHA1
10c7c8bb23SDmitry Kasatkin	select CRYPTO_HASH_INFO
11cd3cec0aSRoberto Sassu	select SECURITY_PATH
12644f1741SRandy Dunlap	select TCG_TPM if HAS_IOMEM
13a69f1589SRandy Dunlap	select TCG_TIS if TCG_TPM && X86
14fac37c62SJiandi An	select TCG_CRB if TCG_TPM && ACPI
1563a0eb78SMichael Ellerman	select TCG_IBMVTPM if TCG_TPM && PPC_PSERIES
162afd020aSStefan Berger	select INTEGRITY_AUDIT if AUDIT
173323eec9SMimi Zohar	help
183323eec9SMimi Zohar	  The Trusted Computing Group(TCG) runtime Integrity
193323eec9SMimi Zohar	  Measurement Architecture(IMA) maintains a list of hash
203323eec9SMimi Zohar	  values of executables and other sensitive system files,
213323eec9SMimi Zohar	  as they are read or executed. If an attacker manages
223323eec9SMimi Zohar	  to change the contents of an important system file
233323eec9SMimi Zohar	  being measured, we can tell.
243323eec9SMimi Zohar
253323eec9SMimi Zohar	  If your system has a TPM chip, then IMA also maintains
263323eec9SMimi Zohar	  an aggregate integrity value over this list inside the
273323eec9SMimi Zohar	  TPM hardware, so that the TPM can prove to a third party
283323eec9SMimi Zohar	  whether or not critical system files have been modified.
29c9fecf50SAlexander A. Klimov	  Read <https://www.usenix.org/events/sec04/tech/sailer.html>
303323eec9SMimi Zohar	  to learn more about IMA.
313323eec9SMimi Zohar	  If unsure, say N.
323323eec9SMimi Zohar
3391e32656SArnd Bergmannif IMA
3491e32656SArnd Bergmann
35d158847aSMimi Zoharconfig IMA_KEXEC
36d158847aSMimi Zohar	bool "Enable carrying the IMA measurement list across a soft boot"
3791e32656SArnd Bergmann	depends on TCG_TPM && HAVE_IMA_KEXEC
38d158847aSMimi Zohar	default n
39d158847aSMimi Zohar	help
40d158847aSMimi Zohar	   TPM PCRs are only reset on a hard reboot.  In order to validate
41d158847aSMimi Zohar	   a TPM's quote after a soft boot, the IMA measurement list of the
42d158847aSMimi Zohar	   running kernel must be saved and restored on boot.
43d158847aSMimi Zohar
44d158847aSMimi Zohar	   Depending on the IMA policy, the measurement list can grow to
45d158847aSMimi Zohar	   be very large.
46d158847aSMimi Zohar
473323eec9SMimi Zoharconfig IMA_MEASURE_PCR_IDX
483323eec9SMimi Zohar	int
49*6903878dSJulian Braha	prompt "PCR Index for Aggregate" if EXPERT
503323eec9SMimi Zohar	range 8 14
513323eec9SMimi Zohar	default 10
523323eec9SMimi Zohar	help
533323eec9SMimi Zohar	  IMA_MEASURE_PCR_IDX determines the TPM PCR register index
543323eec9SMimi Zohar	  that IMA uses to maintain the integrity aggregate of the
55*6903878dSJulian Braha	  measurement list. Most attestation tooling expects PCR 10.
56*6903878dSJulian Braha
57*6903878dSJulian Braha	  The default is almost always what you want. Only change this
58*6903878dSJulian Braha	  if you know what you are doing.
593323eec9SMimi Zohar
604af4662fSMimi Zoharconfig IMA_LSM_RULES
614af4662fSMimi Zohar	bool
6291e32656SArnd Bergmann	depends on AUDIT && (SECURITY_SELINUX || SECURITY_SMACK || SECURITY_APPARMOR)
634af4662fSMimi Zohar	default y
644af4662fSMimi Zohar	help
65b53fab9dSRandy Dunlap	  Disabling this option will disregard LSM based policy rules.
662fe5d6deSMimi Zohar
674286587dSMimi Zoharchoice
684286587dSMimi Zohar	prompt "Default template"
694286587dSMimi Zohar	default IMA_NG_TEMPLATE
704286587dSMimi Zohar	help
714286587dSMimi Zohar	  Select the default IMA measurement template.
724286587dSMimi Zohar
734286587dSMimi Zohar	  The original 'ima' measurement list template contains a
744286587dSMimi Zohar	  hash, defined as 20 bytes, and a null terminated pathname,
754286587dSMimi Zohar	  limited to 255 characters.  The 'ima-ng' measurement list
764286587dSMimi Zohar	  template permits both larger hash digests and longer
77891163adSGUO Zihua	  pathnames. The configured default template can be replaced
78891163adSGUO Zihua	  by specifying "ima_template=" on the boot command line.
794286587dSMimi Zohar
804286587dSMimi Zohar	config IMA_NG_TEMPLATE
814286587dSMimi Zohar		bool "ima-ng (default)"
82bcbc9b0cSMimi Zohar	config IMA_SIG_TEMPLATE
83bcbc9b0cSMimi Zohar		bool "ima-sig"
844286587dSMimi Zoharendchoice
854286587dSMimi Zohar
864286587dSMimi Zoharconfig IMA_DEFAULT_TEMPLATE
874286587dSMimi Zohar	string
884286587dSMimi Zohar	default "ima-ng" if IMA_NG_TEMPLATE
89bcbc9b0cSMimi Zohar	default "ima-sig" if IMA_SIG_TEMPLATE
904286587dSMimi Zohar
91e7a2ad7eSMimi Zoharchoice
92e7a2ad7eSMimi Zohar	prompt "Default integrity hash algorithm"
93e7a2ad7eSMimi Zohar	default IMA_DEFAULT_HASH_SHA1
94e7a2ad7eSMimi Zohar	help
95e7a2ad7eSMimi Zohar	   Select the default hash algorithm used for the measurement
96e7a2ad7eSMimi Zohar	   list, integrity appraisal and audit log.  The compiled default
97e7a2ad7eSMimi Zohar	   hash algorithm can be overwritten using the kernel command
98e7a2ad7eSMimi Zohar	   line 'ima_hash=' option.
99e7a2ad7eSMimi Zohar
100e7a2ad7eSMimi Zohar	config IMA_DEFAULT_HASH_SHA1
101e7a2ad7eSMimi Zohar		bool "SHA1 (default)"
10238d19268SBen Hutchings		depends on CRYPTO_SHA1=y
103e7a2ad7eSMimi Zohar
104e7a2ad7eSMimi Zohar	config IMA_DEFAULT_HASH_SHA256
105e7a2ad7eSMimi Zohar		bool "SHA256"
106891163adSGUO Zihua		depends on CRYPTO_SHA256=y
107e7a2ad7eSMimi Zohar
108e7a2ad7eSMimi Zohar	config IMA_DEFAULT_HASH_SHA512
109e7a2ad7eSMimi Zohar		bool "SHA512"
110891163adSGUO Zihua		depends on CRYPTO_SHA512=y
111e7a2ad7eSMimi Zohar
112e7a2ad7eSMimi Zohar	config IMA_DEFAULT_HASH_WP512
113e7a2ad7eSMimi Zohar		bool "WP512"
114891163adSGUO Zihua		depends on CRYPTO_WP512=y
1155780b9abSTianjia Zhang
1165780b9abSTianjia Zhang	config IMA_DEFAULT_HASH_SM3
1175780b9abSTianjia Zhang		bool "SM3"
1186dc7fce9SEric Biggers		depends on CRYPTO_SM3=y
119e7a2ad7eSMimi Zoharendchoice
120e7a2ad7eSMimi Zohar
121e7a2ad7eSMimi Zoharconfig IMA_DEFAULT_HASH
122e7a2ad7eSMimi Zohar	string
123e7a2ad7eSMimi Zohar	default "sha1" if IMA_DEFAULT_HASH_SHA1
124e7a2ad7eSMimi Zohar	default "sha256" if IMA_DEFAULT_HASH_SHA256
125e7a2ad7eSMimi Zohar	default "sha512" if IMA_DEFAULT_HASH_SHA512
126e7a2ad7eSMimi Zohar	default "wp512" if IMA_DEFAULT_HASH_WP512
1275780b9abSTianjia Zhang	default "sm3" if IMA_DEFAULT_HASH_SM3
128e7a2ad7eSMimi Zohar
12938d859f9SPetko Manolovconfig IMA_WRITE_POLICY
13038d859f9SPetko Manolov	bool "Enable multiple writes to the IMA policy"
13138d859f9SPetko Manolov	default n
13238d859f9SPetko Manolov	help
13338d859f9SPetko Manolov	  IMA policy can now be updated multiple times.  The new rules get
13438d859f9SPetko Manolov	  appended to the original policy.  Have in mind that the rules are
13538d859f9SPetko Manolov	  scanned in FIFO order so be careful when you design and add new ones.
13638d859f9SPetko Manolov
13738d859f9SPetko Manolov	  If unsure, say N.
13838d859f9SPetko Manolov
13980eae209SPetko Manolovconfig IMA_READ_POLICY
14080eae209SPetko Manolov	bool "Enable reading back the current IMA policy"
14180eae209SPetko Manolov	default y if IMA_WRITE_POLICY
14280eae209SPetko Manolov	default n if !IMA_WRITE_POLICY
14380eae209SPetko Manolov	help
14480eae209SPetko Manolov	   It is often useful to be able to read back the IMA policy.  It is
14580eae209SPetko Manolov	   even more important after introducing CONFIG_IMA_WRITE_POLICY.
14680eae209SPetko Manolov	   This option allows the root user to see the current policy rules.
14780eae209SPetko Manolov
1482fe5d6deSMimi Zoharconfig IMA_APPRAISE
1492fe5d6deSMimi Zohar	bool "Appraise integrity measurements"
1502fe5d6deSMimi Zohar	default n
1512fe5d6deSMimi Zohar	help
1522fe5d6deSMimi Zohar	  This option enables local measurement integrity appraisal.
1532fe5d6deSMimi Zohar	  It requires the system to be labeled with a security extended
1542fe5d6deSMimi Zohar	  attribute containing the file hash measurement.  To protect
1552fe5d6deSMimi Zohar	  the security extended attributes from offline attack, enable
1562fe5d6deSMimi Zohar	  and configure EVM.
1572fe5d6deSMimi Zohar
1582fe5d6deSMimi Zohar	  For more information on integrity appraisal refer to:
1592fe5d6deSMimi Zohar	  <http://linux-ima.sourceforge.net>
1602fe5d6deSMimi Zohar	  If unsure, say N.
1617d2ce232SMimi Zohar
162d958083aSEric Richterconfig IMA_ARCH_POLICY
163d958083aSEric Richter        bool "Enable loading an IMA architecture specific policy"
164aefcf2f4SLinus Torvalds        depends on (KEXEC_SIG && IMA) || IMA_APPRAISE \
1659e1e5d43SNayna Jain		   && INTEGRITY_ASYMMETRIC_KEYS
166d958083aSEric Richter        default n
167d958083aSEric Richter        help
168d958083aSEric Richter          This option enables loading an IMA architecture specific policy
169d958083aSEric Richter          based on run time secure boot flags.
170d958083aSEric Richter
171ef96837bSMimi Zoharconfig IMA_APPRAISE_BUILD_POLICY
172ef96837bSMimi Zohar	bool "IMA build time configured policy rules"
173ef96837bSMimi Zohar	depends on IMA_APPRAISE && INTEGRITY_ASYMMETRIC_KEYS
174ef96837bSMimi Zohar	default n
175ef96837bSMimi Zohar	help
176ef96837bSMimi Zohar	  This option defines an IMA appraisal policy at build time, which
177ef96837bSMimi Zohar	  is enforced at run time without having to specify a builtin
178ef96837bSMimi Zohar	  policy name on the boot command line.  The build time appraisal
179ef96837bSMimi Zohar	  policy rules persist after loading a custom policy.
180ef96837bSMimi Zohar
181ef96837bSMimi Zohar	  Depending on the rules configured, this policy may require kernel
182ef96837bSMimi Zohar	  modules, firmware, the kexec kernel image, and/or the IMA policy
183ef96837bSMimi Zohar	  to be signed.  Unsigned files might prevent the system from
184ef96837bSMimi Zohar	  booting or applications from working properly.
185ef96837bSMimi Zohar
186ef96837bSMimi Zoharconfig IMA_APPRAISE_REQUIRE_FIRMWARE_SIGS
187ef96837bSMimi Zohar	bool "Appraise firmware signatures"
188ef96837bSMimi Zohar	depends on IMA_APPRAISE_BUILD_POLICY
189ef96837bSMimi Zohar	default n
190ef96837bSMimi Zohar	help
191ef96837bSMimi Zohar	  This option defines a policy requiring all firmware to be signed,
192ef96837bSMimi Zohar	  including the regulatory.db.  If both this option and
193ef96837bSMimi Zohar	  CFG80211_REQUIRE_SIGNED_REGDB are enabled, then both signature
194ef96837bSMimi Zohar	  verification methods are necessary.
195ef96837bSMimi Zohar
196ef96837bSMimi Zoharconfig IMA_APPRAISE_REQUIRE_KEXEC_SIGS
197ef96837bSMimi Zohar	bool "Appraise kexec kernel image signatures"
198ef96837bSMimi Zohar	depends on IMA_APPRAISE_BUILD_POLICY
199ef96837bSMimi Zohar	default n
200ef96837bSMimi Zohar	help
201ef96837bSMimi Zohar	  Enabling this rule will require all kexec'ed kernel images to
202ef96837bSMimi Zohar	  be signed and verified by a public key on the trusted IMA
203ef96837bSMimi Zohar	  keyring.
204ef96837bSMimi Zohar
205ef96837bSMimi Zohar	  Kernel image signatures can not be verified by the original
206ef96837bSMimi Zohar	  kexec_load syscall.  Enabling this rule will prevent its
207ef96837bSMimi Zohar	  usage.
208ef96837bSMimi Zohar
209ef96837bSMimi Zoharconfig IMA_APPRAISE_REQUIRE_MODULE_SIGS
210ef96837bSMimi Zohar	bool "Appraise kernel modules signatures"
211ef96837bSMimi Zohar	depends on IMA_APPRAISE_BUILD_POLICY
212ef96837bSMimi Zohar	default n
213ef96837bSMimi Zohar	help
214ef96837bSMimi Zohar	  Enabling this rule will require all kernel modules to be signed
215ef96837bSMimi Zohar	  and verified by a public key on the trusted IMA keyring.
216ef96837bSMimi Zohar
217ef96837bSMimi Zohar	  Kernel module signatures can only be verified by IMA-appraisal,
218ef96837bSMimi Zohar	  via the finit_module syscall. Enabling this rule will prevent
219ef96837bSMimi Zohar	  the usage of the init_module syscall.
220ef96837bSMimi Zohar
221ef96837bSMimi Zoharconfig IMA_APPRAISE_REQUIRE_POLICY_SIGS
222ef96837bSMimi Zohar	bool "Appraise IMA policy signature"
223ef96837bSMimi Zohar	depends on IMA_APPRAISE_BUILD_POLICY
224ef96837bSMimi Zohar	default n
225ef96837bSMimi Zohar	help
226ef96837bSMimi Zohar	  Enabling this rule will require the IMA policy to be signed and
227ef96837bSMimi Zohar	  and verified by a key on the trusted IMA keyring.
228ef96837bSMimi Zohar
229e1f5e01fSMimi Zoharconfig IMA_APPRAISE_BOOTPARAM
230e1f5e01fSMimi Zohar	bool "ima_appraise boot parameter"
231311aa6aaSBruno Meneguele	depends on IMA_APPRAISE
232e1f5e01fSMimi Zohar	default y
233e1f5e01fSMimi Zohar	help
234e1f5e01fSMimi Zohar	  This option enables the different "ima_appraise=" modes
235e1f5e01fSMimi Zohar	  (eg. fix, log) from the boot command line.
236e1f5e01fSMimi Zohar
2379044d627SThiago Jung Bauermannconfig IMA_APPRAISE_MODSIG
2389044d627SThiago Jung Bauermann	bool "Support module-style signatures for appraisal"
2399044d627SThiago Jung Bauermann	depends on IMA_APPRAISE
24039b07096SThiago Jung Bauermann	depends on INTEGRITY_ASYMMETRIC_KEYS
24139b07096SThiago Jung Bauermann	select PKCS7_MESSAGE_PARSER
24239b07096SThiago Jung Bauermann	select MODULE_SIG_FORMAT
2439044d627SThiago Jung Bauermann	default n
2449044d627SThiago Jung Bauermann	help
2459044d627SThiago Jung Bauermann	   Adds support for signatures appended to files. The format of the
2469044d627SThiago Jung Bauermann	   appended signature is the same used for signed kernel modules.
2479044d627SThiago Jung Bauermann	   The modsig keyword can be used in the IMA policy to allow a hook
2489044d627SThiago Jung Bauermann	   to accept such signatures.
2499044d627SThiago Jung Bauermann
25056104cf2SDavid Howellsconfig IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY
251f17167beSEric Snowberg	bool "Permit keys validly signed by a built-in, machine (if configured) or secondary"
25256104cf2SDavid Howells	depends on SYSTEM_TRUSTED_KEYRING
25356104cf2SDavid Howells	depends on SECONDARY_TRUSTED_KEYRING
25456104cf2SDavid Howells	depends on INTEGRITY_ASYMMETRIC_KEYS
25556104cf2SDavid Howells	select INTEGRITY_TRUSTED_KEYRING
25656104cf2SDavid Howells	default n
25756104cf2SDavid Howells	help
25856104cf2SDavid Howells	  Keys may be added to the IMA or IMA blacklist keyrings, if the
259bdf1abd1SEric Snowberg	  key is validly signed by a CA cert in the system built-in,
260bdf1abd1SEric Snowberg	  machine (if configured), or secondary trusted keyrings. The
261bdf1abd1SEric Snowberg	  key must also have the digitalSignature usage set.
26256104cf2SDavid Howells
26356104cf2SDavid Howells	  Intermediate keys between those the kernel has compiled in and the
26456104cf2SDavid Howells	  IMA keys to be added may be added to the system secondary keyring,
26556104cf2SDavid Howells	  provided they are validly signed by a key already resident in the
266bdf1abd1SEric Snowberg	  built-in, machine (if configured) or secondary trusted keyrings.
26756104cf2SDavid Howells
26856104cf2SDavid Howellsconfig IMA_BLACKLIST_KEYRING
26956104cf2SDavid Howells	bool "Create IMA machine owner blacklist keyrings (EXPERIMENTAL)"
27041c89b64SPetko Manolov	depends on SYSTEM_TRUSTED_KEYRING
271be210c6dSOleksandr Tymoshenko	depends on INTEGRITY_TRUSTED_KEYRING
27241c89b64SPetko Manolov	default n
27341c89b64SPetko Manolov	help
27456104cf2SDavid Howells	   This option creates an IMA blacklist keyring, which contains all
27556104cf2SDavid Howells	   revoked IMA keys.  It is consulted before any other keyring.  If
27656104cf2SDavid Howells	   the search is successful the requested operation is rejected and
27756104cf2SDavid Howells	   an error is returned to the caller.
27841c89b64SPetko Manolov
279fd5f4e90SDmitry Kasatkinconfig IMA_LOAD_X509
280fd5f4e90SDmitry Kasatkin	bool "Load X509 certificate onto the '.ima' trusted keyring"
281be210c6dSOleksandr Tymoshenko	depends on INTEGRITY_TRUSTED_KEYRING
282fd5f4e90SDmitry Kasatkin	default n
283fd5f4e90SDmitry Kasatkin	help
284fd5f4e90SDmitry Kasatkin	   File signature verification is based on the public keys
285fd5f4e90SDmitry Kasatkin	   loaded on the .ima trusted keyring. These public keys are
286fd5f4e90SDmitry Kasatkin	   X509 certificates signed by a trusted key on the
287fd5f4e90SDmitry Kasatkin	   .system keyring.  This option enables X509 certificate
288fd5f4e90SDmitry Kasatkin	   loading from the kernel onto the '.ima' trusted keyring.
289fd5f4e90SDmitry Kasatkin
290fd5f4e90SDmitry Kasatkinconfig IMA_X509_PATH
291fd5f4e90SDmitry Kasatkin	string "IMA X509 certificate path"
292fd5f4e90SDmitry Kasatkin	depends on IMA_LOAD_X509
293fd5f4e90SDmitry Kasatkin	default "/etc/keys/x509_ima.der"
294fd5f4e90SDmitry Kasatkin	help
295fd5f4e90SDmitry Kasatkin	   This option defines IMA X509 certificate path.
296c57782c1SDmitry Kasatkin
297c57782c1SDmitry Kasatkinconfig IMA_APPRAISE_SIGNED_INIT
298c57782c1SDmitry Kasatkin	bool "Require signed user-space initialization"
299c57782c1SDmitry Kasatkin	depends on IMA_LOAD_X509
300c57782c1SDmitry Kasatkin	default n
301c57782c1SDmitry Kasatkin	help
302c57782c1SDmitry Kasatkin	   This option requires user-space init to be signed.
303ea78979dSLakshmi Ramasubramanian
304ea78979dSLakshmi Ramasubramanianconfig IMA_MEASURE_ASYMMETRIC_KEYS
305ea78979dSLakshmi Ramasubramanian	bool
306ea78979dSLakshmi Ramasubramanian	depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y
307ea78979dSLakshmi Ramasubramanian	default y
3089f81a2edSLakshmi Ramasubramanian
3099f81a2edSLakshmi Ramasubramanianconfig IMA_QUEUE_EARLY_BOOT_KEYS
3109f81a2edSLakshmi Ramasubramanian	bool
3119f81a2edSLakshmi Ramasubramanian	depends on IMA_MEASURE_ASYMMETRIC_KEYS
3129f81a2edSLakshmi Ramasubramanian	depends on SYSTEM_TRUSTED_KEYRING
3139f81a2edSLakshmi Ramasubramanian	default y
3149e2b4be3SNayna Jain
3159e2b4be3SNayna Jainconfig IMA_SECURE_AND_OR_TRUSTED_BOOT
3169e2b4be3SNayna Jain       bool
3179e2b4be3SNayna Jain       depends on IMA_ARCH_POLICY
3189e2b4be3SNayna Jain       help
3199e2b4be3SNayna Jain          This option is selected by architectures to enable secure and/or
3209e2b4be3SNayna Jain          trusted boot based on IMA runtime policies.
32152c20839STushar Sugandhi
32252c20839STushar Sugandhiconfig IMA_DISABLE_HTABLE
32352c20839STushar Sugandhi	bool "Disable htable to allow measurement of duplicate records"
32452c20839STushar Sugandhi	default n
32552c20839STushar Sugandhi	help
32652c20839STushar Sugandhi	   This option disables htable to allow measurement of duplicate records.
32791e32656SArnd Bergmann
3280ad93987SSteven Chenconfig IMA_KEXEC_EXTRA_MEMORY_KB
3290ad93987SSteven Chen	int "Extra memory for IMA measurements added during kexec soft reboot"
3300ad93987SSteven Chen	range 0 40
3310ad93987SSteven Chen	depends on IMA_KEXEC
3320ad93987SSteven Chen	default 0
3330ad93987SSteven Chen	help
3340ad93987SSteven Chen	  IMA_KEXEC_EXTRA_MEMORY_KB determines the extra memory to be
3350ad93987SSteven Chen	  allocated (in kb) for IMA measurements added during kexec soft reboot.
3360ad93987SSteven Chen	  If set to the default value of 0, an extra half page of memory for those
3370ad93987SSteven Chen	  additional measurements will be allocated.
3380ad93987SSteven Chen
339e9b491e2SRoberto Sassuconfig IMA_STAGING
340e9b491e2SRoberto Sassu	bool "Support for staging the measurements list"
341e9b491e2SRoberto Sassu	default n
342e9b491e2SRoberto Sassu	help
343e9b491e2SRoberto Sassu	  Add support for staging the measurements list.
344e9b491e2SRoberto Sassu
345e9b491e2SRoberto Sassu	  It allows user space to stage the measurements list for deletion and
346e9b491e2SRoberto Sassu	  to delete the staged measurements after confirmation.
347e9b491e2SRoberto Sassu
348fcb0318aSRoberto Sassu	  Or, alternatively, it allows user space to specify N measurements
349fcb0318aSRoberto Sassu	  records to stage internally, so that they can be immediately deleted.
350fcb0318aSRoberto Sassu
351e9b491e2SRoberto Sassu	  On kexec, staging is aborted and any staged measurement records are
352e9b491e2SRoberto Sassu	  copied to the secondary kernel.
353e9b491e2SRoberto Sassu
3541ebe7997SYeoreum Yunconfig IMA_INIT_LATE_SYNC
3551ebe7997SYeoreum Yun	bool "Initialise IMA at late_initcall_sync"
3561ebe7997SYeoreum Yun	default n
3571ebe7997SYeoreum Yun	help
3581ebe7997SYeoreum Yun	  This option initialises IMA at late_initcall_sync for platforms
3591ebe7997SYeoreum Yun	  where TPM device probing is deferred.
3601ebe7997SYeoreum Yun	  When this option is enabled, modules that access files in the
3611ebe7997SYeoreum Yun	  initramfs through usermode helper calls such as request_module()
3621ebe7997SYeoreum Yun	  during initcall must not be built-in. Otherwise, IMA may miss
3631ebe7997SYeoreum Yun	  file measurements for them.
36491e32656SArnd Bergmannendif
365