You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Harness key guard: anchor carriers by full path and interpreter #5554
Problem.carries_keys in services/sandbox-runtime/daemon/harness-guard/tale-harness-guard.c trusts a carrier by the last name of its path alone (base_name(realpath(argv[at])) against keysGuard.via). It anchors neither the full path nor the interpreter. Any program whose first argument resolves to a file named tale-pi-run, from any directory and with or without -I, keeps the key descriptor and is treated as a carrier (e.g. perl -I /usr/local/bin/tale-pi-run -e …).
Why it matters. Today PATH is fixed and its directories are root-owned image paths, so there is no known way in. But the guard's promise should not rest on that.
Acceptance criteria.
keysGuard.via names absolute paths (e.g. /usr/local/bin/tale-pi-run), and the guard compares the full realpath, not the base name.
For a script carrier, the guard also requires the executable (/proc/self/exe) to be the image's interpreter (/usr/local/bin/python3) and argv[1] to be exactly -I.
Tests: a same-named file elsewhere is refused; another interpreter (perl -I …, python3 -E …) is refused; the image's real carrier still works; the image test pins the absolute paths.
Activity