ima: add support for different security.ima data types
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Tue, 10 Jan 2012 03:59:36 +0000 (22:59 -0500)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Fri, 7 Sep 2012 18:57:47 +0000 (14:57 -0400)
commit5a44b41207174e1882ce0c24a752f4cfb65dab07
treea5426be63a4f165f3ce15d1e61d8fd10f37fd8c3
parent42c63330f2b05aa6077c1bfc2798c04afe54f6b2
ima: add support for different security.ima data types

IMA-appraisal currently verifies the integrity of a file based on a
known 'good' measurement value.  This patch reserves the first byte
of 'security.ima' as a place holder for the type of method used for
verifying file data integrity.

Changelog v1:
- Use the newly defined 'struct evm_ima_xattr_data'

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