ima: separate 'security.ima' reading functionality from collect
authorDmitry Kasatkin <dmitry.kasatkin@huawei.com>
Thu, 30 Oct 2014 10:39:39 +0000 (12:39 +0200)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Thu, 18 Feb 2016 22:13:32 +0000 (17:13 -0500)
commit1525b06d99b117198ea8d6c128ee5bf28ceb6723
treec85888e65dc37bf76cb7004f2bf775e6c7a797b6
parentc75d8e96f377b59b887a81b31adb00dd1957c3c8
ima: separate 'security.ima' reading functionality from collect

Instead of passing pointers to pointers to ima_collect_measurent() to
read and return the 'security.ima' xattr value, this patch moves the
functionality to the calling process_measurement() to directly read
the xattr and pass only the hash algo to the ima_collect_measurement().

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima.h
security/integrity/ima/ima_api.c
security/integrity/ima/ima_appraise.c
security/integrity/ima/ima_crypto.c
security/integrity/ima/ima_init.c
security/integrity/ima/ima_main.c
security/integrity/ima/ima_template.c
security/integrity/ima/ima_template_lib.c