diff --git a/resource/runner/framework/scripts/setup.sh b/resource/runner/framework/scripts/setup.sh index e97e402..07acf19 100755 --- a/resource/runner/framework/scripts/setup.sh +++ b/resource/runner/framework/scripts/setup.sh @@ -10,6 +10,5 @@ cmake .. -DCMAKE_BUILD_TYPE=Release || exit 1 make -j || exit 1 cd ../.. -cp woj-sandbox/build/libwoj_sandbox.so . || exit 1 cp woj-sandbox/build/woj_launcher . || exit 1 rm -rf woj-sandbox || exit 1 diff --git a/resource/runner/scripts/problem_run.sh b/resource/runner/scripts/problem_run.sh index b23ba71..1466242 100755 --- a/resource/runner/scripts/problem_run.sh +++ b/resource/runner/scripts/problem_run.sh @@ -63,7 +63,7 @@ for test_num in $(seq "$Info_Num"); do --time_limit=$Info_Limit_Time \ --sandbox_path=/woj/framework/scripts/libwoj_sandbox.so \ --sandbox_template=$3 \ - --sandbox_action=nothing \ + --sandbox_action=ret \ --file_input=/woj/problem/data/input/$test_num.input \ --file_output=/woj/user/$test_num.out.usr \ --file_info=/woj/user/$test_num.info \ diff --git a/resource/runner/scripts/ubuntu-full.Dockerfile b/resource/runner/scripts/ubuntu-full.Dockerfile index a7391da..3a7c1f3 100644 --- a/resource/runner/scripts/ubuntu-full.Dockerfile +++ b/resource/runner/scripts/ubuntu-full.Dockerfile @@ -18,3 +18,6 @@ ENV WOJ_SANDBOX=/woj/framework/scripts/libwoj_sandbox.so ENV TEMPLATE=/woj/framework/template ENV TESTLIB=/woj/framework/template/testlib ENV PREFIX=/woj/problem + +# Permission +USER 1000:1000 diff --git a/resource/runner/scripts/ubuntu-run.Dockerfile b/resource/runner/scripts/ubuntu-run.Dockerfile index 44839ba..bba5c38 100644 --- a/resource/runner/scripts/ubuntu-run.Dockerfile +++ b/resource/runner/scripts/ubuntu-run.Dockerfile @@ -4,5 +4,7 @@ FROM docker.io/library/ubuntu:22.04 WORKDIR /woj/problem RUN mkdir -p /woj/framework/scripts -COPY --from=builder /woj/framework/scripts/libwoj_sandbox.so /woj/framework/scripts/ COPY --from=builder /woj/framework/scripts/woj_launcher /woj/framework/scripts/ + +# Permission +USER 1000:1000