pypy-sandbox(1)

pypy-sandbox1

Interact with a sandboxed pypy subprocess

Usage

pypy-sandbox [options] [{-- -c cmd | -- -m mod | file.py | -}] [arg ...]

Overview

pypy-sandbox is a wrapper around a "virtualized" version of PyPy, where an external process controls all input/output. This is a secure sandbox, it is safe to run any untrusted Python code with it. The Python code cannot see or modify any local file except via interaction with the external process.

Any options after a -- will be passed on to the wrapped sandbox-enabled PyPy. It supports the same options as the regular pypy(1).

Options

--tmp DIR

The real directory that corresponds to the virtual /tmp, which is the virtual current dir (and is read-only).

--heapsize N

Limit memory usage to N bytes, or kilo- mega- giga-bytes with the k, m or g suffix respectively.

--timeout N

Limit execution time to N (real-time) seconds.

--log FILE

Log all user input into the FILE.

--verbose

Log all proxied system calls. Requires python-py to be installed.

Author

The PyPy Project

From python-pypy.sandbox 2.4.0+dfsg-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.