mirror of
https://github.com/tailscale/tailscale.git
synced 2026-10-29 14:39:16 -04:00
The agent forwarding socket's temp directory was left root-owned and chmod 0755, letting every local user reach other users' agent sockets. Chown the directory to the session user and keep it 0700 (the socket is already 0600 and chowned first), like sshd's agent forwarding, and remove the directory when the session ends instead of only closing the listener. Updates tailscale/corp#50380 Signed-off-by: James Tucker <james@tailscale.com>