diff options
author | Nayna Jain <nayna@linux.ibm.com> | 2021-04-22 21:16:02 -0400 |
---|---|---|
committer | Mimi Zohar <zohar@linux.ibm.com> | 2021-04-26 21:54:23 -0400 |
commit | 781a5739489949fd0f32432a9da17f7ddbccf1cc (patch) | |
tree | 79006c017249d34638a753e423b902e1c1affa04 /certs/Makefile | |
parent | 28073eb09c5aa29e879490edb88cfd3e7073821e (diff) | |
download | linux-781a5739489949fd0f32432a9da17f7ddbccf1cc.tar.bz2 |
ima: ensure IMA_APPRAISE_MODSIG has necessary dependencies
IMA_APPRAISE_MODSIG is used for verifying the integrity of both kernel
and modules. Enabling IMA_APPRAISE_MODSIG without MODULES causes a build
break.
Ensure the build time kernel signing key is only generated if both
IMA_APPRAISE_MODSIG and MODULES are enabled.
Fixes: 0165f4ca223b ("ima: enable signing of modules with build time generated key")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Nayna Jain <nayna@linux.ibm.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'certs/Makefile')
-rw-r--r-- | certs/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/certs/Makefile b/certs/Makefile index e3185c57fbd8..2f369d6aa494 100644 --- a/certs/Makefile +++ b/certs/Makefile @@ -36,8 +36,10 @@ ifeq ($(CONFIG_MODULE_SIG),y) endif ifeq ($(CONFIG_IMA_APPRAISE_MODSIG),y) +ifeq ($(CONFIG_MODULES),y) SIGN_KEY = y endif +endif ifdef SIGN_KEY ############################################################################### |