summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2009-06-26 17:25:00 +0200
committerJames Morris <jmorris@namei.org>2009-06-29 00:57:49 +0200
commit79b854c549c62c54fa27f87e04465c01db889f8d (patch)
tree5b49ad5ce83888a476fff7f1aa0d6ac82566f7f5 /security
parentintegrity: ima mq_open imbalance msg fix (diff)
downloadlinux-79b854c549c62c54fa27f87e04465c01db889f8d.tar.xz
linux-79b854c549c62c54fa27f87e04465c01db889f8d.zip
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')
-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;
}