[PATCH] security: Fix IMA Kconfig for dependencies on ARM64
zohar at linux.vnet.ibm.com
Thu Mar 8 20:06:01 UTC 2018
On Thu, 2018-03-08 at 12:42 -0600, Jiandi An wrote:
> So from the discussion, I hear James suggests to overhaul the current
> IMA driver to not do measurement (calling tpm_pcr_read(), etc) until
> after initrd phase so TPM drivers can be built as modules.
> I hear Mimi insists TPM drivers should be built-in when IMA driver is
> enabled and set to Y in Kconfig.
> Do we have a consensus on which way we should go?
> I'm no expert on IMA and its driver. James, will you be kind enough
> to look into overhauling the IMA driver to not measure until after
> initrd phase if that's the consensus on resolving this?
IMA selecting the TPM forces the TPM to be builtin. There's nothing
keeping you from directly configuring the TPM driver as builtin.
For remote attestation to validate the IMA measurement list against
the PCRs, the existing "ima_tcb" and "ima_policy=tcb" builtin policies
require the TPM to be builtin.
Not building the TPM into the kernel will also affect EVM.
I don't have a problem accepting your patch now; and if/when there is
a real use case for building the TPM driver as a kernel module for use
with IMA-measurement, accepting those changes then.
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the Linux-security-module-archive