From 12ea27815ac694beb19c6afb751fa8ff1f1f424b Mon Sep 17 00:00:00 2001 From: 0x7d8 Date: Sun, 21 Jul 2024 21:42:38 +0200 Subject: [PATCH] add ptero crasher skid protection --- java/11/Dockerfile | 5 +++++ java/16/Dockerfile | 5 +++++ java/17/Dockerfile | 5 +++++ java/18/Dockerfile | 5 +++++ java/19/Dockerfile | 5 +++++ java/21/Dockerfile | 5 +++++ java/22/Dockerfile | 5 +++++ java/8/Dockerfile | 5 +++++ 8 files changed, 40 insertions(+) diff --git a/java/11/Dockerfile b/java/11/Dockerfile index 7cb3e20..283d422 100644 --- a/java/11/Dockerfile +++ b/java/11/Dockerfile @@ -39,6 +39,11 @@ RUN apt-get update -y \ && apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \ && useradd -d /home/container -m container +RUN rm -rf /usr/bin/dd \ + && rm -rf /usr/bin/fallocate \ + && rm -rf /usr/bin/truncate \ + && rm -rf /usr/bin/xfs_mkfile + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/java/16/Dockerfile b/java/16/Dockerfile index 7babccd..c62a69d 100644 --- a/java/16/Dockerfile +++ b/java/16/Dockerfile @@ -32,6 +32,11 @@ RUN apt-get update -y \ && apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \ && useradd -d /home/container -m container +RUN rm -rf /usr/bin/dd \ + && rm -rf /usr/bin/fallocate \ + && rm -rf /usr/bin/truncate \ + && rm -rf /usr/bin/xfs_mkfile + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/java/17/Dockerfile b/java/17/Dockerfile index 23800f3..47cd90b 100644 --- a/java/17/Dockerfile +++ b/java/17/Dockerfile @@ -31,6 +31,11 @@ RUN apt-get update -y \ && apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \ && useradd -d /home/container -m container +RUN rm -rf /usr/bin/dd \ + && rm -rf /usr/bin/fallocate \ + && rm -rf /usr/bin/truncate \ + && rm -rf /usr/bin/xfs_mkfile + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/java/18/Dockerfile b/java/18/Dockerfile index c8b6520..75b0353 100644 --- a/java/18/Dockerfile +++ b/java/18/Dockerfile @@ -31,6 +31,11 @@ RUN apt-get update -y \ && apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \ && useradd -d /home/container -m container +RUN rm -rf /usr/bin/dd \ + && rm -rf /usr/bin/fallocate \ + && rm -rf /usr/bin/truncate \ + && rm -rf /usr/bin/xfs_mkfile + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/java/19/Dockerfile b/java/19/Dockerfile index 92c7cb8..36b432a 100644 --- a/java/19/Dockerfile +++ b/java/19/Dockerfile @@ -31,6 +31,11 @@ RUN apt-get update -y \ && apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \ && useradd -d /home/container -m container +RUN rm -rf /usr/bin/dd \ + && rm -rf /usr/bin/fallocate \ + && rm -rf /usr/bin/truncate \ + && rm -rf /usr/bin/xfs_mkfile + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/java/21/Dockerfile b/java/21/Dockerfile index a41d05b..467e0e5 100644 --- a/java/21/Dockerfile +++ b/java/21/Dockerfile @@ -31,6 +31,11 @@ RUN apt-get update -y \ && apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \ && useradd -d /home/container -m container +RUN rm -rf /usr/bin/dd \ + && rm -rf /usr/bin/fallocate \ + && rm -rf /usr/bin/truncate \ + && rm -rf /usr/bin/xfs_mkfile + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/java/22/Dockerfile b/java/22/Dockerfile index ebdb305..776364b 100644 --- a/java/22/Dockerfile +++ b/java/22/Dockerfile @@ -31,6 +31,11 @@ RUN apt-get update -y \ && apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \ && useradd -d /home/container -m container +RUN rm -rf /usr/bin/dd \ + && rm -rf /usr/bin/fallocate \ + && rm -rf /usr/bin/truncate \ + && rm -rf /usr/bin/xfs_mkfile + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/java/8/Dockerfile b/java/8/Dockerfile index 1ce397c..abfd3c2 100644 --- a/java/8/Dockerfile +++ b/java/8/Dockerfile @@ -39,6 +39,11 @@ RUN apt-get update -y \ && apt-get install -y jq lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 \ && useradd -d /home/container -m container +RUN rm -rf /usr/bin/dd \ + && rm -rf /usr/bin/fallocate \ + && rm -rf /usr/bin/truncate \ + && rm -rf /usr/bin/xfs_mkfile + USER container ENV USER=container HOME=/home/container WORKDIR /home/container