mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 15:58:53 +00:00
In the Docker image under Docker 19.03.15's default seccomp profile `[ -x
python3 ]` answers false for the bundled interpreter that the shell can still
run, so bin/strata skipped it and said "no usable Python found", and the
entrypoint fell back to another python3. When the permission test says no,
both now ask the interpreter itself (`python -c pass`); a directory or a file
that does not run is still refused.
Cherry-picked from PR #4312 (4be7c731e) without its mode change (the PR set
both scripts to 100644; they stay 100755). tests/terminal/test_launcher_runnable.py
runs the helper of each script on its own (a directory, a non-program, a
missing file, a real interpreter); with tools/test_docker_entrypoint.py and the
install/launcher tests 41 passed on p2003. The seccomp case itself needs that
Docker and is not reproduced.