Skip to content

Commit

Permalink
Support syscalls required by Pascal under certain conditions (e.g, lo…
Browse files Browse the repository at this point in the history
…ading math unit).
  • Loading branch information
giomasce committed Sep 2, 2012
1 parent 53dbb40 commit 9f62482
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cms/grading/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,13 @@ def evaluation_step_before_run(sandbox, command,
sandbox.stderr_file = stderr_filename
# These syscalls and paths are used by executables generated
# by fpc.
sandbox.allow_path += ["/proc/self/exe"]
sandbox.allow_path += ["/proc/self/exe",
"/etc/timezone",
"/usr/share/zoneinfo/"]
sandbox.allow_syscall += ["getrlimit",
"rt_sigaction",
"ugetrlimit"]
"ugetrlimit",
"time"]
# This one seems to be used for a C++ executable.
sandbox.allow_path += ["/proc/meminfo"]
# This is used by freopen in Ubuntu 12.04.
Expand Down

0 comments on commit 9f62482

Please sign in to comment.