Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Sandbox Python Execution #2

Open
okennedy opened this issue Mar 12, 2018 · 2 comments
Open

Sandbox Python Execution #2

okennedy opened this issue Mar 12, 2018 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@okennedy
Copy link
Contributor

If we're going to rely on Python as heavily as we do, it needs to be executed in a sandboxed context.

Here's some discussion about how to possibly pull this off.

https://stackoverflow.com/questions/3688708/python-safe-sandbox#3688718

Jupyter does this on their hosted services, as, presumably does GitHub. Other services like CodePad also need to play similar games. http://codepad.org/about describes the trick as using chroot and blocking most system calls with ptrace. Sandstorm.io does something similar.

@okennedy okennedy added bug Something isn't working enhancement New feature or request labels Mar 12, 2018
@gourab5139014
Copy link

One of the options we could consider is swapping out the current Python interpreter with https://wiki.python.org/moin/SandboxedPython

@okennedy
Copy link
Contributor Author

PyPy seems like it might be a fairly lightweight solution to the sandboxed execution problem. The drawback is that it's built around only Python 2.7.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants