mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
ensure tmp files are not processed
This commit is contained in:
@@ -47,7 +47,7 @@ def checkexisting():
|
|||||||
logging.error("Failed to process file: " + file)
|
logging.error("Failed to process file: " + file)
|
||||||
|
|
||||||
def checksum(filename):
|
def checksum(filename):
|
||||||
if os.path.isfile(filename) && "/tmp/" not in filename:
|
if os.path.isfile(filename) and "/tmp/" not in filename:
|
||||||
with open(filename, 'rb') as afile:
|
with open(filename, 'rb') as afile:
|
||||||
logging.info("Processing file: " + filename)
|
logging.info("Processing file: " + filename)
|
||||||
shawnuff = hashlib.sha1()
|
shawnuff = hashlib.sha1()
|
||||||
|
|||||||
Reference in New Issue
Block a user