Files
8385461d56 [vnet] linux support (#63664)
* first build

* add d-bus daemon for vnet

* set up dns server via systemd-resolved d-bus api

* get DNS upstreams via systemd-resolved API

* never forward DNS requests to self

* refactor: move all systemd-resolved logic to a separate package

* refactor: move all polkit logic to a separate package

* filter systemd-resolved loopback upstreams

* add scope for link-local IPv6 adresses for upstreams

* comment updates, small fixes, and typo cleanup

* return uid from D-Bus authorize func

* add typed constants for systemd unit states

* avoid using canceled context for stopping VNet daemon

* refactor: do not store ctx in dbusDaemon

* Improve dbusDaemon lifecycle handling

* Log errors from `dbusDaemon.Wait`

* refactor: reuse shared darwin/linux code for admin process

* reintroduce isDiagSupported

* refactor logging errors from dbusDaemon.Wait

* do not return error for missing TUN during deconfigure

* use d.conn.Context()

* avoid using bare slog logger

* avoid mutating cached upstream nameserver slices

* fix race between dbus Start and Stop

* small fixes

* some refactoring

---------

Co-authored-by: Nic Klaassen <[email protected]>
Co-authored-by: Rafał Cieślak <[email protected]>
2026-03-17 14:23:25 +00:00
..
2026-03-17 14:23:25 +00:00