diff options
Diffstat (limited to 'security/integrity/ima/ima_api.c')
-rw-r--r-- | security/integrity/ima/ima_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/integrity/ima/ima_api.c b/security/integrity/ima/ima_api.c index 0d50df04ccc4..88a2788b981d 100644 --- a/security/integrity/ima/ima_api.c +++ b/security/integrity/ima/ima_api.c | |||
@@ -178,8 +178,8 @@ void ima_store_measurement(struct integrity_iint_cache *iint, | |||
178 | strncpy(entry->template.file_name, filename, IMA_EVENT_NAME_LEN_MAX); | 178 | strncpy(entry->template.file_name, filename, IMA_EVENT_NAME_LEN_MAX); |
179 | 179 | ||
180 | result = ima_store_template(entry, violation, inode); | 180 | result = ima_store_template(entry, violation, inode); |
181 | if (!result) | 181 | if (!result || result == -EEXIST) |
182 | iint->flags |= IMA_MEASURED; | 182 | iint->flags |= IMA_MEASURED; |
183 | else | 183 | if (result < 0) |
184 | kfree(entry); | 184 | kfree(entry); |
185 | } | 185 | } |