Skip to content

Commit

Permalink
IMA: Add log statements for failure conditions
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Tushar Sugandhi <[email protected]>
Reviewed-by: Mimi Zohar <[email protected]>
Reviewed-by: Lakshmi Ramasubramanian <[email protected]>
Signed-off-by: Mimi Zohar <[email protected]>
  • Loading branch information
Tushar Sugandhi authored and mimizohar committed Feb 28, 2020
1 parent e2bf681 commit 72ec611
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions security/integrity/ima/ima_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 72ec611

Please sign in to comment.