mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
46690f3718
commit
79b854c549
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue