From: Mimi Zohar Date: Thu, 17 Mar 2011 02:48:43 +0000 (-0400) Subject: vfs: move ima_file_free before releasing the file X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~32^2~11^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4199d35cbc90c15db447d115bd96ffa5f1d60d3a;p=pandora-kernel.git vfs: move ima_file_free before releasing the file ima_file_free(), called on __fput(), currently flags files that have changed, so that the file is re-measured. For appraising a files's integrity, the file's hash must be re-calculated and stored in the 'security.ima' xattr to reflect any changes. This patch moves the ima_file_free() call to before releasing the file in preparation of ima-appraisal measuring the file and updating the 'security.ima' xattr. Signed-off-by: Mimi Zohar Acked-by: Serge Hallyn Acked-by: Dmitry Kasatkin --- Reading git-diff-tree failed