mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-06 09:33:17 -05:00
The operator user could serve a path or Unix socket if tailscaled found a sudo rule for them, but the check used the GECOS display name and so failed for most users with a 401. The check cannot be repaired safely: listing another user's sudo rules never prompts, so it proves a rule exists, not that the user has authenticated. An operator who had not entered their sudo password could serve any root-readable file or root-only socket. Require root instead and say so in the error. Fixes #21204 Fixes #21985 Fixes #21988 Signed-off-by: Brendan Creane <bcreane@gmail.com>