Files
security-command.org/deploy/host/sandbox-flags.sh
T

14 lines
509 B
Bash

# Container flags for sandbox sessions, shared by the host and local tools.
# They mirror the configuration hardcoded in the spawner. Keep them in sync.
# shellcheck disable=SC2034
SANDBOX_FLAGS=(
--read-only --network none --cap-drop ALL
--security-opt no-new-privileges --user guest
--memory 80m --memory-swap 80m --cpus 0.5 --pids-limit 50
--ulimit nofile=256:256
--tmpfs /home/guest:size=8m,mode=1777,noexec,nosuid
--tmpfs /tmp:size=8m,noexec,nosuid
--log-driver none
--hostname sandbox
)