aboutsummaryrefslogtreecommitdiff
path: root/security/integrity/ima/ima_queue.c
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2009-06-26 11:25:00 -0400
committerJames Morris <jmorris@namei.org>2009-06-29 08:57:49 +1000
commit79b854c549c62c54fa27f87e04465c01db889f8d (patch)
tree5b49ad5ce83888a476fff7f1aa0d6ac82566f7f5 /security/integrity/ima/ima_queue.c
parent46690f3718d95e9bb712b6f2b5c869f8494521de (diff)
downloadlinux-79b854c549c62c54fa27f87e04465c01db889f8d.tar.gz
integrity: ima audit hash_exists fix
Audit the file name, not the template name. Signed-off-by: Mimi Zohar <zohar@us.ibm.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/integrity/ima/ima_queue.c')
-rw-r--r--security/integrity/ima/ima_queue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_queue.c b/security/integrity/ima/ima_queue.c
index 7ec94314ac0c..a0880e9c8e05 100644
--- a/security/integrity/ima/ima_queue.c
+++ b/security/integrity/ima/ima_queue.c
@@ -134,7 +134,8 @@ int ima_add_template_entry(struct ima_template_entry *entry, int violation,
}
out:
mutex_unlock(&ima_extend_list_mutex);
- integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, entry->template_name,
+ integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode,
+ entry->template.file_name,
op, audit_cause, result, audit_info);
return result;
}