Ned Batchelder
|
771de938c7
|
Update the instructions for setting up the sandbox.
|
2013-05-06 11:39:17 -04:00 |
|
Ned Batchelder
|
ec7a04fdb3
|
A /debug/run_python endpoint for staff to test the sandboxing of Python code.
|
2013-05-06 11:39:17 -04:00 |
|
Ned Batchelder
|
df17c0c7dd
|
Move symmath into capa so that it's available where needed
|
2013-05-06 11:39:17 -04:00 |
|
Ned Batchelder
|
67d0670b2e
|
Symbolic response no longer runs its checker in the Python sandbox.
|
2013-05-06 11:39:16 -04:00 |
|
Victor Shnayder
|
fe12c64523
|
Merge pull request #1951 from edx/victor/epfl-desc
update EPFL profile. LH # 374
|
2013-05-06 08:34:48 -07:00 |
|
Steve Strassmann
|
65dd3cc9ba
|
pull from master
|
2013-05-06 11:29:55 -04:00 |
|
Steve Strassmann
|
c0278d0ff1
|
refactor config file; fix duplicate merge
|
2013-05-06 11:29:27 -04:00 |
|
David Baumgold
|
a779f62716
|
Make rhetorical question a bit clearer
|
2013-05-06 11:27:06 -04:00 |
|
David Baumgold
|
58bc0452eb
|
Describe edX better
|
2013-05-06 11:25:52 -04:00 |
|
David Baumgold
|
b995842874
|
LMS is not a leaning management system
That would be a chair.
|
2013-05-06 11:21:05 -04:00 |
|
David Baumgold
|
683906cdaf
|
"One again" -> "Remember"
|
2013-05-06 11:17:28 -04:00 |
|
Victor Shnayder
|
06846d9187
|
update EPFL profile. LH # 374
|
2013-05-06 11:06:05 -04:00 |
|
David Baumgold
|
7b3646b39c
|
Need to install pre-requirements.txt first
|
2013-05-06 11:05:06 -04:00 |
|
Ned Batchelder
|
94f6e685df
|
Mock the response from the snuggletex server, and unskip the SymbolicResponse test.
|
2013-05-06 10:55:07 -04:00 |
|
Ned Batchelder
|
c04f3e09c0
|
Test that the sandbox can't get to the network.
|
2013-05-06 10:55:07 -04:00 |
|
Ned Batchelder
|
9dbfca129c
|
Check functions now can only return serializable data, and 'ex' and 'got' weren't used later anyway.
|
2013-05-06 10:55:07 -04:00 |
|
Ned Batchelder
|
070f184ee0
|
Not sure why these had capital-I's in them, since the text just above shows lowercase-i's, and uppercase doesn't work properly.
|
2013-05-06 10:55:06 -04:00 |
|
Ned Batchelder
|
81c4e4f74f
|
Make check_function more flexible so symbolicresponse can pass in more information.
|
2013-05-06 10:55:06 -04:00 |
|
Ned Batchelder
|
42eee48ec9
|
A few places we used an option of 'imaginaryi', which isn't a real option. Doesn't change any behavior.
|
2013-05-06 10:55:06 -04:00 |
|
Ned Batchelder
|
a40aed58d0
|
Clean up
|
2013-05-06 10:55:06 -04:00 |
|
Ned Batchelder
|
4fb73248ba
|
Try to get <symbolicresponse> test running. (Not yet)
|
2013-05-06 10:55:06 -04:00 |
|
Ned Batchelder
|
4b234a63a3
|
Future division is really a capa concern, not a general-purpose codejail concern. Move it.
|
2013-05-06 10:55:06 -04:00 |
|
Ned Batchelder
|
7187b10f9c
|
Use the python_path argument to safe_exec
|
2013-05-06 10:55:06 -04:00 |
|
Ned Batchelder
|
a04317b31d
|
Files are properly copied in both implementations of safe_exec, and a new python_path argument adds to the python path.
|
2013-05-06 10:55:06 -04:00 |
|
Ned Batchelder
|
abb9174559
|
Refactor how script chunks are run.
|
2013-05-06 10:55:06 -04:00 |
|
Ned Batchelder
|
12b6876753
|
safe_exec seeds the random module, and now we have tests for it.
|
2013-05-06 10:55:06 -04:00 |
|
Ned Batchelder
|
ab8a3050fd
|
Don't use jailpy if it hasn't been configured.
|
2013-05-06 10:55:05 -04:00 |
|
Ned Batchelder
|
d99eadc0a2
|
Refactor the assumed_imports handling
|
2013-05-06 10:55:05 -04:00 |
|
Ned Batchelder
|
eb85696347
|
Tests for safe_exec
|
2013-05-06 10:55:05 -04:00 |
|
Ned Batchelder
|
5d4b61c7f5
|
Better configuration for codejail.
|
2013-05-06 10:55:05 -04:00 |
|
Ned Batchelder
|
30748a06ff
|
Try to find the sandbox in a few places.
|
2013-05-06 10:55:05 -04:00 |
|
Ned Batchelder
|
716a97ea59
|
Symbolic response doesn't need to pre-import symmath any more, I think?
|
2013-05-06 10:55:05 -04:00 |
|
Ned Batchelder
|
e8da1b8f61
|
Turn off our debugging levers
|
2013-05-06 10:55:05 -04:00 |
|
Ned Batchelder
|
3316aeb032
|
Add back the not_safe_exec implementation, for debugging.
|
2013-05-06 10:55:05 -04:00 |
|
Ned Batchelder
|
ebb2624719
|
Make jailpy tests more convenient and informative.
|
2013-05-06 10:55:05 -04:00 |
|
Ned Batchelder
|
7c498be606
|
Move packages around so we can install packages into the sandbox.
|
2013-05-06 10:55:05 -04:00 |
|
Ned Batchelder
|
70930c25c1
|
Remove the unsafe version of safe_exec, and document the safe one.
|
2013-05-06 10:55:04 -04:00 |
|
Ned Batchelder
|
5db5426e05
|
Use the real safe_exec; make the seed available in the context.
|
2013-05-06 10:55:04 -04:00 |
|
Ned Batchelder
|
19e3a0ceb9
|
Implement safe_exec on top of jailpy (old unsafe safe_exec is still here); Remove some crazy stuff from the context; always pass globals and locals, locals are the things that can be changed.
|
2013-05-06 10:55:04 -04:00 |
|
Ned Batchelder
|
908f44b9cd
|
snippets aren't used. Remove them.
|
2013-05-06 10:55:04 -04:00 |
|
Ned Batchelder
|
249ba4be33
|
Finish the test for computed_answer
|
2013-05-06 10:55:04 -04:00 |
|
Ned Batchelder
|
248017b4ea
|
No longer need to support <coderesponse> without <codeparam>, so scrap the code.
|
2013-05-06 10:55:04 -04:00 |
|
Ned Batchelder
|
a6677aa0a8
|
Computed answers are run through safe_exec.
|
2013-05-06 10:55:04 -04:00 |
|
Ned Batchelder
|
37ca6bf77e
|
Move our specialization of safe_exec into a new module to avoid circular imports.
|
2013-05-06 10:55:04 -04:00 |
|
Ned Batchelder
|
6297d64528
|
Now these can be in the same test class
|
2013-05-06 10:55:04 -04:00 |
|
Ned Batchelder
|
ff1df569cb
|
Refactor submitting problems so we don't need custom code for each test.
|
2013-05-06 10:55:04 -04:00 |
|
Ned Batchelder
|
33abe54e0d
|
Work in progress to sandbox the uses of eval in LMS.
|
2013-05-06 10:55:03 -04:00 |
|
Ned Batchelder
|
0a6761c9a5
|
Clean up this xml data file.
|
2013-05-06 10:55:03 -04:00 |
|
Ned Batchelder
|
9249bafd00
|
Add a test of a bad answer also.
|
2013-05-06 10:55:03 -04:00 |
|
Ned Batchelder
|
e69a073161
|
Add a test for the Python in schemaresponse, and refactor the tests while I was in there.
|
2013-05-06 10:55:03 -04:00 |
|