tailscale/ssh/tailssh
Simon Law 3c98964065
ssh/tailssh: chdir to user's homedir when directly running a command (#15351)
Commit 4b525fdda (ssh/tailssh: only chdir incubator process to user's
homedir when necessary and possible, 2024-08-16) defers changing the
working directory until the incubator process drops its privileges.

However, it didn't account for the case where there is no incubator
process, because no tailscaled was found on the PATH. In that case, it
only intended to run `tailscaled be-child` in the root directory but
accidentally ran everything there.

Fixes: #15350

Signed-off-by: Simon Law <sfllaw@sfllaw.ca>
2025-05-09 12:55:57 -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: fall back to using su when no TTY available on Linux 2024-05-29 13:15:17 -05: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: chdir to user's homedir when directly running a command (#15351) 2025-05-09 12:55:57 -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 net/netmon: publish events to event bus 2025-04-16 10:10:45 -07:00
tailssh.go ssh/tailssh: add Plan 9 support for Tailscale SSH 2025-04-02 07:36:04 -07:00
user.go ssh/tailssh: add Plan 9 support for Tailscale SSH 2025-04-02 07:36:04 -07:00