ima: initialize only required template
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Thu, 8 May 2014 08:23:53 +0000 (11:23 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Tue, 9 Sep 2014 14:28:54 +0000 (10:28 -0400)
commitb4148db51720a6b25a981ea72185312d4b6634fe
tree10db80db11bb0028fa1a829162b5063b347d9bee
parent17f4bad3abc7c09f42987d89ccccab02c03455a9
ima: initialize only required template

IMA uses only one template. This patch initializes only required
template to avoid unnecessary memory allocations.

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