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
Andrew Dunham 13377e6458 ssh/tailssh: always assert our final uid/gid
Move the assertions about our post-privilege-drop UID/GID out of the
conditional if statement and always run them; I haven't been able to
find a case where this would fail. Defensively add an envknob to disable
this feature, however, which we can remove after the 1.40 release.

Updates #7616

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: Iaec3dba9248131920204bd6c6d34bbc57a148185
2 years ago
..
incubator.go ssh/tailssh: always assert our final uid/gid 2 years ago
incubator_linux.go all: update copyright and license headers 2 years ago
privs_test.go ssh/tailssh: fix privilege dropping on FreeBSD; add tests 2 years ago
tailssh.go ssh/tailssh: use background context for uploading recordings 2 years ago
tailssh_test.go all: update to Go 1.20, use strings.CutPrefix/Suffix instead of our fork 2 years ago