ima: provide hash algo info in the xattr
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Mon, 12 Aug 2013 08:22:51 +0000 (11:22 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Sun, 27 Oct 2013 01:32:55 +0000 (21:32 -0400)
commit3ea7a56067e663278470c04fd655adf809e72d4d
tree8216b30887dc86cf7594f6fd1cc729b7eda28c0a
parente7a2ad7eb6f48ad80c70a22dd8167fb34b409466
ima: provide hash algo info in the xattr

All files labeled with 'security.ima' hashes, are hashed using the
same hash algorithm.  Changing from one hash algorithm to another,
requires relabeling the filesystem.  This patch defines a new xattr
type, which includes the hash algorithm, permitting different files
to be hashed with different algorithms.

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