From 89c48f4a3047ca6cf0985b92e004fb584dd22a30 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 18 Jul 2013 08:49:05 -0400 Subject: [PATCH] Use CodeJail with FSIZE support, and default to 50k --- lms/envs/common.py | 2 ++ requirements/edx/github.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lms/envs/common.py b/lms/envs/common.py index 8b2a1f28cfe3..0859dbc3f268 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -308,6 +308,8 @@ 'limits': { # How many CPU seconds can jailed code use? 'CPU': 1, + # How large a file can jailed code write? + 'FSIZE': 50000, }, } diff --git a/requirements/edx/github.txt b/requirements/edx/github.txt index 5d1a505ace7f..64231bc6b71c 100644 --- a/requirements/edx/github.txt +++ b/requirements/edx/github.txt @@ -9,5 +9,5 @@ # Our libraries: -e git+https://github.com/edx/XBlock.git@3974e999fe853a37dfa6fadf0611289434349409#egg=XBlock --e git+https://github.com/edx/codejail.git@0a1b468#egg=codejail +-e git+https://github.com/edx/codejail.git@c08967fb44d1bcdb259d3ec58812e3ac592539c2#egg=codejail -e git+https://github.com/edx/diff-cover.git@v0.1.3#egg=diff_cover