tailscale/ssh/tailssh
M. J. Fromberger 67514f5eb2
ssh/tailssh: fix path of "true" on Darwin (#16569)
This is a follow-up to #15351, which fixed the test for Linux but not for
Darwin, which stores its "true" executable in /usr/bin instead of /bin.
Try both paths when not running on Windows.

In addition, disable CGo in the integration test build, which was causing the
linker to fail. These tests do not need CGo, and it appears we had some version
skew with the base image on the runners.

In addition, in error cases the recover step of the permissions check was
spuriously panicking and masking the "real" failure reason. Don't do that check
when a command was not produced.

Updates #15350

Change-Id: Icd91517f45c90f7554310ebf1c888cdfd109f43a
Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
2025-07-16 08:08:59 -07:00
..
testcontainers ssh/tailssh: accept passwords and public keys 2025-02-13 11:29:45 -06:00
accept_env_test.go ssh: Add logic to set accepted environment variables in SSH session (#13559) 2024-09-30 21:47:45 -06:00
accept_env.go ssh: Add logic to set accepted environment variables in SSH session (#13559) 2024-09-30 21:47:45 -06:00
incubator_linux.go ssh/tailssh: exclude Android from Linux build tags 2025-05-22 20:02:59 -07:00
incubator_plan9.go ssh/tailssh: add Plan 9 support for Tailscale SSH 2025-04-02 07:36:04 -07:00
incubator.go ssh/tailssh: fix path of "true" on Darwin (#16569) 2025-07-16 08:08:59 -07:00
privs_test.go ssh/tailssh: only chdir incubator process to user's homedir when necessary and possible 2024-08-21 13:20:12 -05:00
tailssh_integration_test.go ssh/tailssh: accept passwords and public keys 2025-02-13 11:29:45 -06:00
tailssh_test.go ssh/tailssh: display more useful error messages when authentication fails 2025-06-03 14:00:04 -05:00
tailssh.go ssh/tailssh: display more useful error messages when authentication fails 2025-06-03 14:00:04 -05:00
user.go ssh/tailssh: exclude Android from Linux build tags 2025-05-22 20:02:59 -07:00