diff options
author | Tushar Sugandhi <tusharsu@linux.microsoft.com> | 2020-02-18 16:06:10 -0800 |
---|---|---|
committer | Mimi Zohar <zohar@linux.ibm.com> | 2020-02-28 14:32:58 -0500 |
commit | 72ec611c64766795c495d88a4ad5d1180eb61bd8 (patch) | |
tree | 803eab9597722415bc0c0f2d2a570b3e7883aaba | |
parent | e2bf6814bec379d573eef1929a9e6e6777d21c05 (diff) | |
download | linux-72ec611c64766795c495d88a4ad5d1180eb61bd8.tar.bz2 |
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: Joe Perches <joe@perches.com>
Signed-off-by: Tushar Sugandhi <tusharsu@linux.microsoft.com>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Reviewed-by: Lakshmi Ramasubramanian <nramas@linux.microsoft.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
-rw-r--r-- | security/integrity/ima/ima_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c index 9fe949c6a530..aac1c44fb11b 100644 --- a/security/integrity/ima/ima_main.c +++ b/security/integrity/ima/ima_main.c @@ -757,6 +757,9 @@ void process_buffer_measurement(const void *buf, int size, ima_free_template_entry(entry); out: + if (ret < 0) + pr_devel("%s: failed, result: %d\n", __func__, ret); + return; } |