You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
7 months ago
..
testcontainers ssh/tailssh: accept passwords and public keys 10 months ago
accept_env.go ssh: Add logic to set accepted environment variables in SSH session (#13559) 1 year ago
accept_env_test.go ssh: Add logic to set accepted environment variables in SSH session (#13559) 1 year ago
incubator.go ssh/tailssh: chdir to user's homedir when directly running a command (#15351) 7 months ago
incubator_linux.go ssh/tailssh: fall back to using su when no TTY available on Linux 2 years ago
incubator_plan9.go ssh/tailssh: add Plan 9 support for Tailscale SSH 8 months ago
privs_test.go ssh/tailssh: only chdir incubator process to user's homedir when necessary and possible 1 year ago
tailssh.go ssh/tailssh: add Plan 9 support for Tailscale SSH 8 months ago
tailssh_integration_test.go ssh/tailssh: accept passwords and public keys 10 months ago
tailssh_test.go net/netmon: publish events to event bus 8 months ago
user.go ssh/tailssh: add Plan 9 support for Tailscale SSH 8 months ago