We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0de9b9c commit 778e2edCopy full SHA for 778e2ed
judge/testcase_run.sh
@@ -212,6 +212,12 @@ runcheck "$RUN_SCRIPT" $RUNARGS \
212
--stderr=program.err --outmeta=program.meta -- \
213
"$PREFIX/$PROGRAM" 2>runguard.err
214
215
+if [ "$CREATE_WRITABLE_TEMP_DIR" ]; then
216
+ # Revoke access to the TMPDIR as security measure
217
+ chown -R "$(id -un):" "$TMPDIR"
218
+ chmod -R go= "$TMPDIR"
219
+fi
220
+
221
if [ $COMBINED_RUN_COMPARE -eq 0 ]; then
222
# We first compare the output, so that even if the submission gets a
223
# timelimit exceeded or runtime error verdict later, the jury can
0 commit comments