ima: add inode_post_setattr call
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Thu, 10 Mar 2011 03:57:53 +0000 (22:57 -0500)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Fri, 7 Sep 2012 18:57:46 +0000 (14:57 -0400)
commit9957a5043e7b0b7361cdf48eea22b2900293e63a
tree41930ca31f67b77fd814a5ad80fcc5d1652ccbe6
parenta10bf26b2f53242836e9362c6c9c857b627b82a9
ima: add inode_post_setattr call

Changing an inode's metadata may result in our not needing to appraise
the file.  In such cases, we must remove 'security.ima'.

Changelog v1:
- use ima_inode_post_setattr() stub function, if IMA_APPRAISE not configured

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
fs/attr.c
include/linux/ima.h