Files
Brad Fitzpatrick 7872169dbe safesocket: let a non-administrator listen on the Windows named pipe
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
2026-09-15 21:35:56 -07:00
..
2026-07-10 17:39:16 -07:00