Skip to content

Commit 931f665

Browse files
author
Andras Fekete
committed
Missing 'tcpdump' utility
1 parent 00fa00f commit 931f665

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Docker/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ USER root
55

66
ARG DEPS_WOLFSSL="build-essential autoconf libtool clang clang-tools zlib1g-dev libuv1-dev libpam0g-dev valgrind git linux-headers-generic gcc-multilib g++-multilib libpcap-dev bubblewrap gdb iputils-ping lldb bsdmainutils netcat binutils-arm-linux-gnueabi binutils-aarch64-linux-gnu"
77
ARG DEPS_LIBOQS="astyle cmake gcc ninja-build libssl-dev python3-pytest python3-pytest-xdist unzip xsltproc doxygen graphviz python3-yaml valgrind git"
8-
ARG DEPS_TESTS="abi-dumper libcurl4-openssl-dev"
8+
ARG DEPS_TESTS="abi-dumper libcurl4-openssl-dev tcpdump"
99
RUN DEBIAN_FRONTEND=noninteractive apt update && apt install -y apt-utils \
1010
&& apt install -y ${DEPS_WOLFSSL} ${DEPS_LIBOQS} ${DEPS_TESTS} \
1111
&& apt clean -y && rm -rf /var/lib/apt/lists/*
@@ -19,4 +19,7 @@ RUN groupadd -f -g ${GID} docker && ( getent passwd ${UID} || useradd -ms /bin/b
1919
RUN git clone --single-branch https://github.com/open-quantum-safe/liboqs.git && cd liboqs && git checkout af76ca3b1f2fbc1f4f0967595f3bb07692fb3d82 \
2020
&& mkdir build && cd build && cmake -DOQS_DIST_BUILD=ON -DOQS_USE_CPUFEATURE_INSTRUCTIONS=OFF -DOQS_USE_OPENSSL=0 .. && make -j8 all && make install && cd ../.. && rm -rf liboqs
2121

22+
# Allow non-root to use tcpdump (will need NET_RAW and NET_ADMIN capability when running the container)
23+
RUN setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/tcpdump
24+
2225
USER ${UID}:${GID}

0 commit comments

Comments
 (0)