ima: added error messages to template-related functions
authorRoberto Sassu <roberto.sassu@polito.it>
Mon, 13 Oct 2014 12:08:38 +0000 (14:08 +0200)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Mon, 13 Oct 2014 12:39:01 +0000 (08:39 -0400)
commit71fed2eee0ea76b236f491006078c9d636323184
treea088eed632515837503be22bfbceecd2916ea26b
parent0716abbb58e3c47e04354c2502083854f49c34e5
ima: added error messages to template-related functions

This patch adds some error messages to inform users about the following
events: template descriptor not found, invalid template descriptor,
template field not found and template initialization failed.

Changelog:
 - v2:
   - display an error message if the format string contains too many
     fields (Roberto Sassu)

Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima_template.c