ima: support new "hash" and "dont_hash" policy actions
[linux-2.6-microblaze.git] / security / integrity / ima / ima_api.c
index c7e8db0..877f446 100644 (file)
@@ -174,7 +174,7 @@ err_out:
  */
 int ima_get_action(struct inode *inode, int mask, enum ima_hooks func, int *pcr)
 {
-       int flags = IMA_MEASURE | IMA_AUDIT | IMA_APPRAISE;
+       int flags = IMA_MEASURE | IMA_AUDIT | IMA_APPRAISE | IMA_HASH;
 
        flags &= ima_policy_flag;