Commit Graph

921 Commits

Author SHA1 Message Date
Thomas Hobson b51350489f
Up the default max file size limit 2021-05-08 12:08:13 +12:00
Thomas Hobson 0da1cd5867
use real uid for killing processes instead of using euid (#206) 2021-05-07 22:11:28 +12:00
Thomas Hobson 972228412a
switch to taking config by env
To help with ease of deployment, configuration now is administered through the use of environment variables.
This allows for easy configuration directly from the docker-compose file and is a much more robust solution.
2021-05-07 21:11:36 +12:00
Felix fb102ebe83
Improved memory limits (#248)
* Added optional compile_memory_limit and run_memory_limit parameters

* Combined memory limit parameters into one
2021-05-07 20:21:25 +12:00
Thomas Hobson eaf0ba34bd
Allow additional content-type parameters 2021-05-07 20:12:27 +12:00
Thomas Hobson d95d67071c
reject on non-json content-types (#233) 2021-05-07 19:37:22 +12:00
Thomas Hobson 9590d5afbc
Patch for race condition with filesystem and process cleanup 2021-05-07 19:23:34 +12:00
MrExquisite 95421c9e15
pkg(octave-6.2.0): add aliases/file extensions (#249)
Octave aliases/file extensions compliant to https://octave.org/doc/v6.2.0/Introduction-to-Function-and-Script-Files.html
2021-05-05 22:46:11 +12:00
Meghan 2ae78b954b
zig/0.7.1: set release most to safe so executers can still observe runtime checks (#250) 2021-05-05 22:45:42 +12:00
Dan Vargas dae0c57aae
pkg(rockstar-1.0.0): switch to rocky implementation (#251) 2021-05-05 22:45:33 +12:00
Thomas Hobson 09d32a521e
Merge branch 'master' of https://github.com/engineer-man/piston 2021-05-02 20:12:06 +12:00
Thomas Hobson 8b90c12c5c
chown directories to root, ensuring they are not writable by runners 2021-05-02 20:11:55 +12:00
Dan Vargas 50cb0f1996
pkg(octave-6.2.0): add octave 6.2.0 (#247) 2021-05-02 18:36:41 +12:00
Thomas Hobson 38ab15081e
Merge branch 'master' of https://github.com/engineer-man/piston 2021-05-02 17:02:26 +12:00
Thomas Hobson 37c760b081
allow empty contents 2021-05-02 17:01:50 +12:00
Thomas d55d158fb6
bump repo ci 2021-05-02 15:21:54 +12:00
Thomas d577072749
Revert "Added max_memory_usage parameter (#238)" (#246)
This reverts commit a49acc7dbe.
2021-05-02 14:55:37 +12:00
Dan Vargas 7f3a0854fd
pkg(octave-6.2.0): add deps for octave (#245) 2021-05-02 14:45:26 +12:00
Dan Vargas 2412d50f82
pkg(octave-6.2.0): add deps for octave (#245) 2021-05-02 14:41:53 +12:00
Felix a49acc7dbe
Added max_memory_usage parameter (#238)
* Added max_memory_usage parameter

* Added max_memory_usage description to readme
2021-05-01 21:10:53 +12:00
Dan Vargas f2973f0536
pkg(ruby-3.0.1): add ruby 3.0.1 (#242)
Co-authored-by: Vargas, Dan <dan.vargas@frostbank.com>
2021-04-30 23:33:29 +12:00
vcokltfre 37946d8542
fix: add yeethon to supported languages list (#240) 2021-04-30 20:10:26 +12:00
Thomas Hobson 6e748c614c
Merge branch 'master' of https://github.com/engineer-man/piston 2021-04-29 13:57:46 +12:00
Thomas Hobson 5221cdc7f4
make /tmp executable 2021-04-29 13:57:29 +12:00
Shivansh-007 75957407ca
pkg(yeethon3.10): Adds Yeethon 3.10 (#239)
* pkg(yeethon3.10): Adds Yeethon 3.10

* pkg(yeethon3.10): Change test file name to `test.yeethon.py`
2021-04-29 13:55:43 +12:00
Thomas 6b5fcaf363
Update metadata.json 2021-04-28 20:21:56 +12:00
Thomas bbb45a5a0a
python 2 is language python2 2021-04-28 20:15:46 +12:00
JeffreyHuang06 9f98f393a7
Update readme.md (#226)
changed api path from v1 to v2
2021-04-28 16:16:29 +12:00
Thomas Hobson 5509492a99
uncomment the fix 2021-04-28 16:11:49 +12:00
Thomas Hobson 0299810d6c
update CI config 2021-04-28 16:04:27 +12:00
Thomas Hobson 3bd73d07a9
file persistance fix 2021-04-28 16:03:35 +12:00
Thomas Hobson a6bc24e22e
Fix issue where large files can be written to exhaust space
**BREAKING CHANGE**
Requires manually editing the config file, or deleting the config file entirely!
2021-04-28 15:39:23 +12:00
Thomas Hobson 73391cf718
add exploit payloads 2021-04-28 15:35:40 +12:00
Thomas Hobson 6b138f2377
Merge branch 'master' of https://github.com/engineer-man/piston 2021-04-28 14:35:05 +12:00
Thomas Hobson 724cbbaa9b
mount /tmp as tmpfs in container 2021-04-28 14:34:51 +12:00
Dan Vargas 3dfade7c91
pkg(lolcode-0.11.2): update build script to use correct lolcode version (#237)
Co-authored-by: Vargas, Dan <dan.vargas@frostbank.com>
2021-04-28 14:15:34 +12:00
Dan Vargas 08ea3b3740
pkg(lolcode-0.11.2): add dep for correct version (#234)
Co-authored-by: Vargas, Dan <dan.vargas@frostbank.com>
2021-04-28 11:03:33 +12:00
Victor Frazao 3355ffafb2
pkg(cobol-3.1.2): Adds cobol 3.1.2 (gnucobol) (#235) 2021-04-28 11:02:59 +12:00
Victor Frazao 65cbefa94e
pkg(gcc-10.2.0): Adds Fortran support for GCC (#236) 2021-04-28 11:02:17 +12:00
Dan Vargas 959830c652
pkg(groovy-3.0.7): add compile step (#232)
Co-authored-by: Vargas, Dan <dan.vargas@frostbank.com>
2021-04-27 12:18:52 +12:00
Thomas Hobson 7da1a7dce8
fix ci 2021-04-27 12:15:33 +12:00
Thomas Hobson 4ef3e4e5c3
fix ci 2021-04-27 12:10:12 +12:00
Thomas Hobson 9a52e369f2
fix forking exploits 2021-04-26 19:37:40 +12:00
Thomas Hobson 6fe0da030d
edge case 2021-04-26 13:37:50 +12:00
Thomas Hobson 3673b4e403
zombie process handler 2021-04-26 13:00:34 +12:00
Thomas Hobson 347f2d56d7
use a compatible waitpid library 2021-04-26 11:32:10 +12:00
Thomas Hobson dd31873700
free zombie processes from proctable 2021-04-26 11:22:28 +12:00
Thomas Hobson 18a44bf146
install ps in container 2021-04-26 10:58:57 +12:00
Thomas Hobson 00fede6e0d
change api version to v2 2021-04-26 10:40:53 +12:00
Thomas Hobson 72bda367e0
cleanup all runner user processes 2021-04-26 10:35:34 +12:00