mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 08:41:19 -08:00
The pipe's security descriptor named the Administrators group as owner and group. Only administrators may assign that SID as an owner, so a tailscaled run by a regular user (in userspace-networking mode with its own --socket) died at startup with "This security ID may not be assigned as the owner of this object". The tests already had to swap in an empty descriptor to run unelevated. Drop the owner and group so the creator owns the pipe; the DACL granting users and LocalSystem access is unchanged, and it is the DACL that matters. The tests now use the real descriptor. Also give a pointer when listening on the default ProtectedPrefix\Administrators pipe fails with access denied, since that prefix does need an administrator. Updates #2791 Signed-off-by: Brad Fitzpatrick <[email protected]> Change-Id: I8a1c3e5f7b9d2e4a6c8b0d2f4e6a8c0b2d4f6a8c