From ae57a3e1e48d59079675381a6757d6cdab5043f8 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Mon, 8 Jul 2019 02:48:36 +0300 Subject: [PATCH] ima-evm-utils: Allow multiple files in ima_verify This allows testing multiple verify in a row, similar to ima_measurement. Signed-off-by: Vitaly Chikunov Signed-off-by: Mimi Zohar --- src/evmctl.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/evmctl.c b/src/evmctl.c index fac593a..7ce2022 100644 --- a/src/evmctl.c +++ b/src/evmctl.c @@ -850,9 +850,11 @@ static int cmd_verify_ima(struct command *cmd) return -1; } - err = verify_ima(file); - if (!err && params.verbose >= LOG_INFO) - log_info("%s: verification is OK\n", file); + do { + err = verify_ima(file); + if (!err && params.verbose >= LOG_INFO) + log_info("%s: verification is OK\n", file); + } while ((file = g_argv[optind++])); return err; }