Message ID | 1594845435-19164-2-git-send-email-zohar@linux.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/3] ima-evm-utils: address new compiler complaints | expand |
diff --git a/src/libimaevm.c b/src/libimaevm.c index b8d576969aa4..16e07e82b9e3 100644 --- a/src/libimaevm.c +++ b/src/libimaevm.c @@ -323,7 +323,8 @@ EVP_PKEY *read_pub_pkey(const char *keyfile, int x509) fp = fopen(keyfile, "r"); if (!fp) { - log_err("Failed to open keyfile: %s\n", keyfile); + if (imaevm_params.verbose > LOG_INFO) + log_info("Failed to open keyfile: %s\n", keyfile); return NULL; }
Not being able to read the public key is not necessarily an error. Emit a message based on log level. Signed-off-by: Mimi Zohar <zohar@linux.ibm.com> --- src/libimaevm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)