13 lines
469 B
Bash
13 lines
469 B
Bash
# Container flags for sandbox sessions, shared by the host and local tools.
|
|
# They mirror the configuration hardcoded in the spawner and must stay identical.
|
|
# shellcheck disable=SC2034
|
|
SANDBOX_FLAGS=(
|
|
--read-only --network none --cap-drop ALL
|
|
--security-opt no-new-privileges --user agent
|
|
--memory 80m --memory-swap 80m --cpus 0.5 --pids-limit 50
|
|
--ulimit nofile=256:256
|
|
--tmpfs /tmp:size=8m,noexec,nosuid
|
|
--log-driver none
|
|
--hostname security-command
|
|
)
|