[v1,3/5] ima-evm-utils: Preload public keys for ima_verify
diff mbox series

Message ID 20190707234837.4866-4-vt@altlinux.org
State New
Headers show
Series
  • ima-evm-utils: Assorted fixes and improvements
Related show

Commit Message

Vitaly Chikunov July 7, 2019, 11:48 p.m. UTC
This allows testing verify_hash_v2() with multiple public keys.

Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
---
 src/evmctl.c | 3 +++
 1 file changed, 3 insertions(+)

Patch
diff mbox series

diff --git a/src/evmctl.c b/src/evmctl.c
index 4e0a831..fac593a 100644
--- a/src/evmctl.c
+++ b/src/evmctl.c
@@ -840,6 +840,9 @@  static int cmd_verify_ima(struct command *cmd)
 	char *file = g_argv[optind++];
 	int err;
 
+	if (params.keyfile)
+		init_public_keys(params.keyfile);
+
 	errno = 0;
 	if (!file) {
 		log_err("Parameters missing\n");