Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/mmguero-dev/Malcolm
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Aug 27, 2024
2 parents 5f31b9a + c652ca1 commit 2bacdae
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Dockerfiles/arkime.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ RUN export DEBARCH=$(dpkg --print-architecture) && \
mkdir -p "${ARKIME_DIR}"/plugins && \
curl -fsSL -o "${ARKIME_DIR}/plugins/ja4plus.${DEBARCH}.so" "$(echo "${ARKIME_JA4_SO_URL}" | sed "s/XXX/${DEBARCH}/g")" && \
chmod 755 "${ARKIME_DIR}/plugins/ja4plus.${DEBARCH}.so" && \
python3 -m pip install --break-system-packages --no-compile --no-cache-dir beautifulsoup4 pyzmq watchdog==5.0.0 && \
python3 -m pip install --break-system-packages --no-compile --no-cache-dir beautifulsoup4 pyzmq watchdog==4.0.2 && \
ln -sfr $ARKIME_DIR/bin/npm /usr/local/bin/npm && \
ln -sfr $ARKIME_DIR/bin/node /usr/local/bin/node && \
ln -sfr $ARKIME_DIR/bin/npx /usr/local/bin/npx && \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/file-monitor.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ RUN export BINARCH=$(uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
python-magic \
stream-zip \
supervisor \
watchdog==5.0.0 \
watchdog==4.0.2 \
yara-python && \
curl -fsSL -o /usr/local/bin/supercronic "${SUPERCRONIC_URL}${BINARCH}" && \
chmod +x /usr/local/bin/supercronic && \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/filebeat.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ RUN export EVTXARCH=$(uname -m | sed 's/arm64/aarch64/') && \
unar \
unzip \
xz-utils && \
python3 -m pip install --no-compile --no-cache-dir patool entrypoint2 pyunpack python-magic ordered-set supervisor watchdog==5.0.0 && \
python3 -m pip install --no-compile --no-cache-dir patool entrypoint2 pyunpack python-magic ordered-set supervisor watchdog==4.0.2 && \
curl -fsSL -o /usr/local/bin/supercronic "${SUPERCRONIC_URL}${BINARCH}" && \
chmod +x /usr/local/bin/supercronic && \
curl -fsSL -o /usr/local/bin/yq "${YQ_URL}${BINARCH}" && \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/pcap-monitor.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ RUN apt-get -q update && \
python-magic \
pyzmq \
requests \
watchdog==5.0.0 && \
watchdog==4.0.2 && \
groupadd --gid ${DEFAULT_GID} ${PGROUP} && \
useradd -M --uid ${DEFAULT_UID} --gid ${DEFAULT_GID} ${PUSER}

Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/suricata.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ RUN export BINARCH=$(uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
apt-get install -q -y --no-install-recommends -t bookworm-backports \
suricata=${SURICATA_VERSION_PATTERN} \
suricata-update && \
python3 -m pip install --break-system-packages --no-compile --no-cache-dir watchdog==5.0.0 && \
python3 -m pip install --break-system-packages --no-compile --no-cache-dir watchdog==4.0.2 && \
curl -fsSL -o /usr/local/bin/supercronic "${SUPERCRONIC_URL}${BINARCH}" && \
chmod +x /usr/local/bin/supercronic && \
curl -fsSL -o /usr/bin/yq "${YQ_URL}${BINARCH}" && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ pip3 install --break-system-packages --no-compile --no-cache-dir --force-reinsta
stix2 \
stream-zip \
taxii2-client \
watchdog==5.0.0
watchdog==4.0.2
6 changes: 3 additions & 3 deletions shared/bin/pcap_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

from watchdog.observers import Observer
from watchdog.observers.polling import PollingObserver
from watchdog.utils import WatchdogShutdownError
from watchdog.utils import WatchdogShutdown

###################################################################################################
MINIMUM_CHECKED_FILE_SIZE_DEFAULT = 24
Expand Down Expand Up @@ -564,9 +564,9 @@ def main():
logging.info(f"{scriptName}:\tshutting down...")

if shuttingDown[0]:
raise WatchdogShutdownError()
raise WatchdogShutdown()

except WatchdogShutdownError:
except WatchdogShutdown:
observer.unschedule_all()

finally:
Expand Down
6 changes: 3 additions & 3 deletions shared/bin/watch_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

from multiprocessing.pool import ThreadPool
from threading import get_native_id
from watchdog.utils import WatchdogShutdownError
from watchdog.utils import WatchdogShutdown
from watchdog.observers import Observer
from watchdog.observers.polling import PollingObserver
from collections import namedtuple, defaultdict, OrderedDict
Expand Down Expand Up @@ -327,9 +327,9 @@ def WatchAndProcessDirectory(
observer.join(1)

if shuttingDown[0]:
raise WatchdogShutdownError()
raise WatchdogShutdown()

except WatchdogShutdownError:
except WatchdogShutdown:
observer.unschedule_all()

finally:
Expand Down
6 changes: 3 additions & 3 deletions shared/bin/zeek_carve_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from multiprocessing.pool import ThreadPool
from watchdog.observers import Observer
from watchdog.observers.polling import PollingObserver
from watchdog.utils import WatchdogShutdownError
from watchdog.utils import WatchdogShutdown

from zeek_carve_utils import (
CAPA_VIV_MIME,
Expand Down Expand Up @@ -320,9 +320,9 @@ def main():
logging.info(f"{scriptName}:\tshutting down...")

if shuttingDown[0]:
raise WatchdogShutdownError()
raise WatchdogShutdown()

except WatchdogShutdownError:
except WatchdogShutdown:
observer.unschedule_all()

finally:
Expand Down

0 comments on commit 2bacdae

Please sign in to comment.