Add Verilator support
This commit is contained in:
12
_web_server/server/restrict
Executable file
12
_web_server/server/restrict
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ -z "$DONOTUSEFIREJAIL" ]; then
|
||||
exec firejail \
|
||||
--quiet --noprofile \
|
||||
--rlimit-cpu=5 \
|
||||
--rlimit-as=250m \
|
||||
--rlimit-fsize=250k \
|
||||
"$@"
|
||||
else
|
||||
exec timeout -v -s KILL 5 "$@"
|
||||
fi
|
||||
Reference in New Issue
Block a user