summaryrefslogtreecommitdiff
path: root/security/integrity
diff options
context:
space:
mode:
authorNayna Jain <nayna@linux.ibm.com>2021-04-09 10:35:07 -0400
committerMimi Zohar <zohar@linux.ibm.com>2021-04-09 10:40:20 -0400
commit6cbdfb3d91bab122033bd2ecae8c259cb6e4f7d0 (patch)
tree05c396347eaa59a17fe6819603f6eacc1cd546f9 /security/integrity
parent0165f4ca223b04bb032095753fadd28816dc435f (diff)
downloadlwn-6cbdfb3d91bab122033bd2ecae8c259cb6e4f7d0.tar.gz
lwn-6cbdfb3d91bab122033bd2ecae8c259cb6e4f7d0.zip
ima: enable loading of build time generated key on .ima keyring
The kernel currently only loads the kernel module signing key onto the builtin trusted keyring. Load the module signing key onto the IMA keyring as well. Signed-off-by: Nayna Jain <nayna@linux.ibm.com> Acked-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'security/integrity')
-rw-r--r--security/integrity/digsig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/integrity/digsig.c b/security/integrity/digsig.c
index 250fb0836156..3b06a01bd0fd 100644
--- a/security/integrity/digsig.c
+++ b/security/integrity/digsig.c
@@ -111,6 +111,8 @@ static int __init __integrity_init_keyring(const unsigned int id,
} else {
if (id == INTEGRITY_KEYRING_PLATFORM)
set_platform_trusted_keys(keyring[id]);
+ if (id == INTEGRITY_KEYRING_IMA)
+ load_module_cert(keyring[id]);
}
return err;