mirror of
https://github.com/tailscale/tailscale.git
synced 2026-10-30 06:59:08 -04:00
ssh/tailssh: treat numerically-zero uids as root in isRootUser
An NSS uid like "00" passed the string != "0" check but parses to 0 in the incubator, so a session could bypass non-root checks and run as root. Compare the uid numerically instead; non-numeric uids keep the previous behavior. Updates tailscale/corp#50380 Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f