From: Tushar Sugandhi Date: Wed, 19 Feb 2020 00:06:10 +0000 (-0800) Subject: IMA: Add log statements for failure conditions X-Git-Tag: v5.15~4177^2~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72ec611c64766795c495d88a4ad5d1180eb61bd8;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Tushar Sugandhi Reviewed-by: Mimi Zohar Reviewed-by: Lakshmi Ramasubramanian Signed-off-by: Mimi Zohar --- diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c index 9fe949c..aac1c44 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; }