diff options
Diffstat (limited to 'security/integrity/ima/ima_api.c')
-rw-r--r-- | security/integrity/ima/ima_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/integrity/ima/ima_api.c b/security/integrity/ima/ima_api.c index 0e7540863fc2..80374842fe0b 100644 --- a/security/integrity/ima/ima_api.c +++ b/security/integrity/ima/ima_api.c | |||
@@ -94,6 +94,7 @@ int ima_store_template(struct ima_template_entry *entry, | |||
94 | /* this function uses default algo */ | 94 | /* this function uses default algo */ |
95 | hash.hdr.algo = HASH_ALGO_SHA1; | 95 | hash.hdr.algo = HASH_ALGO_SHA1; |
96 | result = ima_calc_field_array_hash(&entry->template_data[0], | 96 | result = ima_calc_field_array_hash(&entry->template_data[0], |
97 | entry->template_desc, | ||
97 | num_fields, &hash.hdr); | 98 | num_fields, &hash.hdr); |
98 | if (result < 0) { | 99 | if (result < 0) { |
99 | integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, | 100 | integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, |