Commit 72ec611c authored by Tushar Sugandhi's avatar Tushar Sugandhi Committed by Mimi Zohar

IMA: Add log statements for failure conditions

process_buffer_measurement() does not have log messages for failure
conditions.

This change adds a log statement in the above function.
Suggested-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarTushar Sugandhi <tusharsu@linux.microsoft.com>
Reviewed-by: default avatarMimi Zohar <zohar@linux.ibm.com>
Reviewed-by: default avatarLakshmi Ramasubramanian <nramas@linux.microsoft.com>
Signed-off-by: default avatarMimi Zohar <zohar@linux.ibm.com>
parent e2bf6814
...@@ -757,6 +757,9 @@ void process_buffer_measurement(const void *buf, int size, ...@@ -757,6 +757,9 @@ void process_buffer_measurement(const void *buf, int size,
ima_free_template_entry(entry); ima_free_template_entry(entry);
out: out:
if (ret < 0)
pr_devel("%s: failed, result: %d\n", __func__, ret);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment