diff options
Diffstat (limited to 'security/integrity/ima/ima_queue.c')
-rw-r--r-- | security/integrity/ima/ima_queue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/integrity/ima/ima_queue.c b/security/integrity/ima/ima_queue.c index e63ff3369f10..d85e99761f4f 100644 --- a/security/integrity/ima/ima_queue.c +++ b/security/integrity/ima/ima_queue.c | |||
@@ -104,7 +104,8 @@ static int ima_pcr_extend(const u8 *hash) | |||
104 | * and extend the pcr. | 104 | * and extend the pcr. |
105 | */ | 105 | */ |
106 | int ima_add_template_entry(struct ima_template_entry *entry, int violation, | 106 | int ima_add_template_entry(struct ima_template_entry *entry, int violation, |
107 | const char *op, struct inode *inode) | 107 | const char *op, struct inode *inode, |
108 | const unsigned char *filename) | ||
108 | { | 109 | { |
109 | u8 digest[TPM_DIGEST_SIZE]; | 110 | u8 digest[TPM_DIGEST_SIZE]; |
110 | const char *audit_cause = "hash_added"; | 111 | const char *audit_cause = "hash_added"; |
@@ -141,8 +142,7 @@ int ima_add_template_entry(struct ima_template_entry *entry, int violation, | |||
141 | } | 142 | } |
142 | out: | 143 | out: |
143 | mutex_unlock(&ima_extend_list_mutex); | 144 | mutex_unlock(&ima_extend_list_mutex); |
144 | integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, | 145 | integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, filename, |
145 | entry->template.file_name, | ||
146 | op, audit_cause, result, audit_info); | 146 | op, audit_cause, result, audit_info); |
147 | return result; | 147 | return result; |
148 | } | 148 | } |