ima: delay template descriptor lookup until use
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Fri, 13 Jun 2014 15:55:48 +0000 (18:55 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Thu, 17 Jul 2014 13:35:09 +0000 (09:35 -0400)
commit209b43ca64a6f2b0c7ac66b457f530c52d608c3e
tree49b9c0d04b2abd63be87b6072b19edaa96d414ff
parent2c50b964823ebb7f0a098878c399ce859cd38e9e
ima: delay template descriptor lookup until use

process_measurement() always calls ima_template_desc_current(),
including when an IMA policy has not been defined.

This patch delays template descriptor lookup until action is
determined.

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima_main.c