Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283258
b: refs/heads/master
c: 45fae74
h: refs/heads/master
v: v3
  • Loading branch information
Roberto Sassu authored and Mimi Zohar committed Dec 20, 2011
1 parent 1555cfe commit 2bb0369
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 114d6e9c103736487c967060d0a7aec9a7fce967
refs/heads/master: 45fae7493970d7c45626ccd96d4a74f5f1eea5a9
4 changes: 2 additions & 2 deletions trunk/security/integrity/ima/ima_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ void ima_store_measurement(struct integrity_iint_cache *iint,
strncpy(entry->template.file_name, filename, IMA_EVENT_NAME_LEN_MAX);

result = ima_store_template(entry, violation, inode);
if (!result)
if (!result || result == -EEXIST)
iint->flags |= IMA_MEASURED;
else
if (result < 0)
kfree(entry);
}
1 change: 1 addition & 0 deletions trunk/security/integrity/ima/ima_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ int ima_add_template_entry(struct ima_template_entry *entry, int violation,
memcpy(digest, entry->digest, sizeof digest);
if (ima_lookup_digest_entry(digest)) {
audit_cause = "hash_exists";
result = -EEXIST;
goto out;
}
}
Expand Down

0 comments on commit 2bb0369

Please sign in to comment.