diff options
author | 2020-03-23 09:27:15 -0700 | |
---|---|---|
committer | 2020-03-23 09:27:33 -0700 | |
commit | 414c67231292aac7ed4db5758b31411fc10de344 (patch) | |
tree | 4121419739fd11be641325c673b09ea4a3f6402d /README.md | |
parent | Use reference links in README.md (diff) |
Replace NsJail config details with a reference to snekbox.cfg
As convenient as it may be, it is redundant to list out the config in
the docs. It also may fall out of sync with the actual config should
someone forget to update the docs.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 17 |
1 files changed, 2 insertions, 15 deletions
@@ -22,21 +22,7 @@ result <- | |<----------| | <----------+ ``` -The code is executed in a Python process that is launched through [NsJail], which is responsible for sandboxing the Python process. NsJail is configured as follows: - -* All mounts are read-only -* Time limit of 5 seconds -* Maximum of 1 PID -* Maximum memory of 52428800 bytes -* Loopback interface is down -* procfs is disabled - -The Python process is configured as follows: - -* Version 3.8.0 -* Isolated mode - * Neither the script's directory nor the user's site packages are in `sys.path` - * All `PYTHON*` environment variables are ignored +The code is executed in a Python process that is launched through [NsJail], which is responsible for sandboxing the Python process. See [`snekbox.cfg`] for the NsJail configuration. ## HTTP REST API @@ -158,6 +144,7 @@ The alias can be found in `./scripts/.profile`, which is automatically added whe [1]: https://dev.azure.com/python-discord/Python%20Discord/_apis/build/status/Snekbox?branchName=master [2]: https://dev.azure.com/python-discord/Python%20Discord/_build/latest?definitionId=13&branchName=master +[`snekbox.cfg`]: snekbox.cfg [`snekapi.py`]: snekbox/api/snekapi.py [`resources`]: snekbox/api/resources [`docker run`]: https://docs.docker.com/engine/reference/commandline/run/ |