]> asedeno.scripts.mit.edu Git - linux.git/commit
IMA: fix measuring asymmetric keys Kconfig
authorLakshmi Ramasubramanian <nramas@linux.microsoft.com>
Wed, 8 Jan 2020 16:05:08 +0000 (08:05 -0800)
committerMimi Zohar <zohar@linux.ibm.com>
Thu, 9 Jan 2020 19:06:06 +0000 (14:06 -0500)
commitea78979d302f7de9bbd59f9dafdb070ecb05ec39
tree86efe4446738cfe0814735ee024ddca7a888e47b
parentf47825c694851955fa4c492dd56809621529b086
IMA: fix measuring asymmetric keys Kconfig

As a result of the asymmetric public keys subtype Kconfig option being
defined as tristate, with the existing IMA Makefile, ima_asymmetric_keys.c
could be built as a kernel module.  To prevent this from happening, this
patch defines and uses an intermediate Kconfig boolean option named
IMA_MEASURE_ASYMMETRIC_KEYS.

Signed-off-by: Lakshmi Ramasubramanian <nramas@linux.microsoft.com>
Suggested-by: James.Bottomley <James.Bottomley@HansenPartnership.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reported-by: kbuild test robot <lkp@intel.com> # ima_asymmetric_keys.c
is built as a kernel module.
Fixes: 88e70da170e8 ("IMA: Define an IMA hook to measure keys")
Fixes: cb1aa3823c92 ("KEYS: Call the IMA hook to measure keys")
[zohar@linux.ibm.com: updated patch description]
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
include/linux/ima.h
security/integrity/ima/Kconfig
security/integrity/ima/Makefile