integrity: ima audit hash_exists fix
Subsystems (3)
PATCH 1/1 integrity: ima audit hash_exists fix
Audit the file name, not the template name.
Signed-off-by Mimi Zohar <[email protected]>
--- security/integrity/ima/ima_queue.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
security/integrity/ima/ima_queue.c +2 -1
@@ -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; }
Signature · 1 line
1.6.0.6