Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79b854c5 authored by Mimi Zohar's avatar Mimi Zohar Committed by James Morris
Browse files

integrity: ima audit hash_exists fix



Audit the file name, not the template name.

Signed-off-by: default avatarMimi Zohar <zohar@us.ibm.com>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 46690f37
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
}