no-mistakes(test): Verify timeout enforces limit before sandbox exec
This commit is contained in:
1 parent
59bdaa6e2a
commit
78424d2778
2 files changed
+24
-4
No files matched your search
@@ -76,7 +76,7 @@ Container controls:
|
||||
- `--memory 4g`, `--cpus 2`, `--pids-limit 256`, and `nofile=1024:1024`.
|
||||
- `fsize=104857600` (100 MiB) when the Docker host accepts it. Docker Desktop on macOS may refuse `fsize`; the wrapper then starts without only that cap and prints a warning.
|
||||
|
||||
`exec` runs the command from `/scratch/app` under `timeout --signal=KILL`, default 600 seconds. It passes no host environment variables. If the image has no `timeout` binary, `exec` refuses to run rather than dropping the wall-clock limit.
|
||||
`exec` runs the command from `/scratch/app` under `timeout --signal=KILL`, default 600 seconds. It passes no host environment variables. If the image has no `timeout` binary, or its `timeout` does not enforce the `--signal=KILL` wall-clock limit, `exec` refuses to run rather than dropping the limit.
|
||||
|
||||
`stop` removes the container, the state file, and the run directory. Pass `--keep` to keep the run directory for inspection. State lives under `${XDG_STATE_HOME:-~/.local/state}/security-audit-sandbox` and is keyed by the canonical app path, so `exec`, `stop`, and `status` find the same run.
|
||||
|
||||
|
||||
Reference in new issue
Block a user