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
ok "the retry count and the detail cap are passed, in that order"
301
318
else fail "the retry count and the detail cap are passed, in that order""$(tail -1 "$SSHLOG")";fi
302
319
320
+
section "the sweep's interpreter cannot be shadowed through PATH"
321
+
322
+
# THE MECHANISM, NOT THE CHECK. augur's own ~/.augur-env puts $HOME/.local/bin FIRST in the PATH of
323
+
# every guest shell — including the non-login shell `ssh <host> <cmd>` runs, which still sources
324
+
# ~/.zshenv — so an unpinned `python3` here is chosen by the guest. Shadowing the freshness tripwire
325
+
# would make the self-test lie while real sweeps still worked; shadowing THIS makes the sweep print
326
+
# `ok=N` while invalidating nothing, and the edit that then never lands may be the operator tightening
327
+
# the rules on a guest that is misbehaving. verify_macos_egress_locked pins its own probes for the
328
+
# same reason (augur:1748-1755); this arm is what keeps the two from drifting apart again.
329
+
#
330
+
# Asserted on the FIRST line, before `python3`, because order is the property: a pin appended after
331
+
# the interpreter has already resolved is not a pin.
332
+
if head -1 "$SSHLOG"| grep -q "export PATH=/usr/bin:/bin:/usr/sbin:/sbin; *python3 -c ";then
333
+
ok "the sweep pins PATH to system dirs ahead of \`python3\`"
334
+
else fail "the sweep pins PATH to system dirs ahead of \`python3\`""a guest-planted ~/.local/bin/python3 would decide what this round trip reports: $(head -1 "$SSHLOG")";fi
335
+
# The pin must not have cost the protocol: the program is still an ARGUMENT (stdin stays free for the
336
+
# NUL list), and _macos_msync_program still contains no single quote of its own.
337
+
if [[ "$(tr -dc '\0'<"$STDINLOG"| wc -c | tr -d '')"-gt 0 ]];then ok "…without disturbing the NUL-separated list on stdin"
338
+
else fail "…without disturbing the NUL-separated list on stdin""the pin was added in a way that consumed stdin or broke the quoting";fi
339
+
303
340
section "--share-refresh off stops the sweep — at every call site at once"
304
341
305
342
# `off` is enforced INSIDE refresh_macos_shares rather than by an `if` copied to the four attach call
0 commit comments