diff options
author | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2009-06-26 19:25:00 +0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-06-29 02:57:49 +0400 |
commit | 79b854c549c62c54fa27f87e04465c01db889f8d (patch) | |
tree | 5b49ad5ce83888a476fff7f1aa0d6ac82566f7f5 /security/integrity | |
parent | 46690f3718d95e9bb712b6f2b5c869f8494521de (diff) | |
download | linux-79b854c549c62c54fa27f87e04465c01db889f8d.tar.xz |
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')
-rw-r--r-- | security/integrity/ima/ima_queue.c | 3 |
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; } |