ima: use full pathnames in measurement list
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Wed, 20 Jun 2012 13:32:55 +0000 (09:32 -0400)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Mon, 2 Jul 2012 20:43:29 +0000 (16:43 -0400)
commit08e1b76ae399a010c0d0916b125d75aed6961d16
tree88806da1802a75d3edbb46436bb509150177eb76
parent659b5e76521c10331495cbd9acb7217e38ff9750
ima: use full pathnames in measurement list

The IMA measurement list contains filename hints, which can be
ambigious without the full pathname.  This patch replaces the
filename hint with the full pathname, simplifying for userspace
the correlating of file hash measurements with files.

Change log v1:
- Revert to short filenames, when full pathname is longer than IMA
  measurement buffer size. (Based on Dmitry's review)

Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima_api.c
security/integrity/ima/ima_main.c