Now using user namespaces which allow unprivileged users to create the sandbox.
9 lines
150 B
Bash
Executable file
9 lines
150 B
Bash
Executable file
#!/bin/bash
|
|
|
|
|
|
set -e
|
|
|
|
|
|
SCRIPT_PATH=$(realpath $0)
|
|
SCRIPT_DIR=$(dirname $SCRIPT_PATH)
|
|
unshare --mount --map-root-user "$SCRIPT_DIR/sandbox_fs.py" "$@"
|