Code Review
/
releng-anteater.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Implements full path for hash checks of binaries
[releng-anteater.git]
/
anteater
/
src
/
project_scan.py
diff --git
a/anteater/src/project_scan.py
b/anteater/src/project_scan.py
index
3a04a83
..
b80b73f
100644
(file)
--- a/
anteater/src/project_scan.py
+++ b/
anteater/src/project_scan.py
@@
-93,9
+93,10
@@
def scan_file(project_dir, project, binary_list, file_audit_list,
# Check if Binary is whitelisted
hashlist = get_lists.GetLists()
# Check if Binary is whitelisted
hashlist = get_lists.GetLists()
- binary_hash = hashlist.binary_hash(project, full_path)
+ split_path = full_path.split(project + '/', 1)[-1]
+ binary_hash = hashlist.binary_hash(project, split_path)
- if is_binary(full_path)
and not binary_list.search(full_path)
:
+ if is_binary(full_path):
with open(full_path, 'rb') as afile:
buf = afile.read()
hasher.update(buf)
with open(full_path, 'rb') as afile:
buf = afile.read()
hasher.update(buf)