File tree 9 files changed +20
-9
lines changed
9 files changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ RUN /usr/sbin/useradd --no-create-home -u 1000 user
18
18
COPY flag /
19
19
COPY chal /home/user/
20
20
21
- FROM gcr.io/kctf-docker/challenge@sha256:6dd60da626bc43bf3175d9d7436006db5acc7710d5d1b7006ab53e718fe51e40
21
+ FROM gcr.io/kctf-docker/challenge@sha256:53499279053b1dace64197f0376b972793f1131c6b0fa317edf23fe1b0933b61
22
22
23
23
COPY --from=chroot / /chroot
24
24
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- FROM gcr.io/kctf-docker/healthcheck@sha256:06c6f051583b84d8dc4d77962256b7d1f1f247f405972e0649c821837b66c894
14
+ FROM gcr.io/kctf-docker/healthcheck@sha256:60267abf2e5a081f3f26692ebecac29a8a315a413f69cb1bfcd2e9148dda116e
15
15
16
16
COPY healthcheck_loop.sh healthcheck.py healthz_webserver.py /home/user/
17
17
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ COPY web-servers /web-servers
40
40
41
41
COPY flag /
42
42
43
- FROM gcr.io/kctf-docker/challenge@sha256:6dd60da626bc43bf3175d9d7436006db5acc7710d5d1b7006ab53e718fe51e40
43
+ FROM gcr.io/kctf-docker/challenge@sha256:53499279053b1dace64197f0376b972793f1131c6b0fa317edf23fe1b0933b61
44
44
45
45
RUN apt-get update \
46
46
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends tzdata apache2 \
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- FROM gcr.io/kctf-docker/healthcheck@sha256:06c6f051583b84d8dc4d77962256b7d1f1f247f405972e0649c821837b66c894
14
+ FROM gcr.io/kctf-docker/healthcheck@sha256:60267abf2e5a081f3f26692ebecac29a8a315a413f69cb1bfcd2e9148dda116e
15
15
16
16
COPY healthcheck_loop.sh healthcheck.py healthz_webserver.py /home/user/
17
17
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- FROM gcr.io/kctf-docker/challenge@sha256:6dd60da626bc43bf3175d9d7436006db5acc7710d5d1b7006ab53e718fe51e40
14
+ FROM gcr.io/kctf-docker/challenge@sha256:53499279053b1dace64197f0376b972793f1131c6b0fa317edf23fe1b0933b61
15
15
16
16
RUN apt-get update && apt-get install -y gnupg2
17
17
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- FROM gcr.io/kctf-docker/healthcheck@sha256:06c6f051583b84d8dc4d77962256b7d1f1f247f405972e0649c821837b66c894
14
+ FROM gcr.io/kctf-docker/healthcheck@sha256:60267abf2e5a081f3f26692ebecac29a8a315a413f69cb1bfcd2e9148dda116e
15
15
16
16
COPY healthcheck_loop.sh healthcheck.py healthz_webserver.py /home/user/
17
17
Original file line number Diff line number Diff line change 16
16
FROM ubuntu:20.04 as nsjail
17
17
18
18
ENV BUILD_PACKAGES build-essential git protobuf-compiler libprotobuf-dev bison flex pkg-config libnl-route-3-dev ca-certificates
19
+ ENV NSJAIL_COMMIT 4be95952340bd1339889174d3a9158d636985813
19
20
20
21
RUN apt-get update \
21
22
&& apt-get install -yq --no-install-recommends $BUILD_PACKAGES \
22
23
&& rm -rf /var/lib/apt/lists/* \
23
24
&& git clone https://github.com/google/nsjail.git \
24
- && cd /nsjail && make -j && cp nsjail /usr/bin/ \
25
+ && cd /nsjail && git checkout $NSJAIL_COMMIT && make -j && cp nsjail /usr/bin/ \
25
26
&& rm -R /nsjail && apt-get remove --purge -y $BUILD_PACKAGES $(apt-mark showauto)
26
27
27
28
# challenge image
Original file line number Diff line number Diff line change 2
2
3
3
# There are two copies of this file in the nsjail and healthcheck base images.
4
4
5
- exec setpriv --init-groups --reset-env --reuid user --regid user --inh-caps=-all -- " $@ "
5
+ all_caps=" -cap_0"
6
+ for i in $( seq 1 $( cat /proc/sys/kernel/cap_last_cap) ) ; do
7
+ all_caps+=" ,-cap_${i} "
8
+ done
9
+
10
+ exec setpriv --init-groups --reset-env --reuid user --regid user --inh-caps=${all_caps} -- " $@ "
Original file line number Diff line number Diff line change 2
2
3
3
# There are two copies of this file in the nsjail and healthcheck base images.
4
4
5
- exec setpriv --init-groups --reset-env --reuid user --regid user --inh-caps=-all -- $@
5
+ all_caps=" -cap_0"
6
+ for i in $( seq 1 $( cat /proc/sys/kernel/cap_last_cap) ) ; do
7
+ all_caps+=" ,-cap_${i} "
8
+ done
9
+
10
+ exec setpriv --init-groups --reset-env --reuid user --regid user --inh-caps=${all_caps} -- $@
You can’t perform that action at this time.
0 commit comments