Skip to content

Commit

Permalink
add new bindmounts
Browse files Browse the repository at this point in the history
  • Loading branch information
sirdarckcat committed Mar 16, 2022
1 parent 2404638 commit 7f4eacf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion vrp/level1/challenge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ spec:
defaultMode: 0555
secretName: kctf-flag
optional: true
image: eu.gcr.io/gctf-vrp/kctf-challenge:425670f084e0344fddd192efc0ce8b16c5d72286c27705cc591b9ff2b000b3c3
image: eu.gcr.io/gctf-vrp/kctf-challenge:d9e48607036aaf10d3c59bb111dc3c62e7b96e72c5773e00d6b6a40f836d6155
4 changes: 2 additions & 2 deletions vrp/level1/challenge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ FROM ubuntu:20.04 as chroot
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y build-essential curl wget git python3 netcat socat gdb
RUN /usr/sbin/useradd --no-create-home -u 1000 user

RUN touch /etc/node-os-release /etc/node-image
RUN mkdir /node-boot
RUN touch /etc/node-os-release
RUN mkdir /node-boot /etc/node-image

COPY chal /home/user/

Expand Down
16 changes: 13 additions & 3 deletions vrp/level1/challenge/nsjail.cfg
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright 2020 Google LLC
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# https://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down Expand Up @@ -46,6 +46,16 @@ mount: [
dst: "/etc/node-os-release"
is_bind: true
},
{
src: "/etc/node-image"
dst: "/etc/node-image"
is_bind: true
},
{
src: "/node-boot"
dst: "/node-boot"
is_bind: true
},
{
src: "/dev/null"
dst: "/dev/null"
Expand Down

0 comments on commit 7f4eacf

Please sign in to comment.