Skip to contentSkip to conversation

integrity: ima audit hash_exists fix

PATCH New Mimi Zohar 1 participant 1 message Jun 26, 2009

Subsystems (3)
lore
Share & tools
lore

Mimi Zohar

author
#0 lore raw

PATCH 1/1 integrity: ima audit hash_exists fix

Audit the file name, not the template name.

---
 security/integrity/ima/ima_queue.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
security/integrity/ima/ima_queue.c +2 -1
index 7ec9431..57f26f1 100644
@@ -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