Leadaxe:说明 Linux 下 systemd-resolved 与 Polkit 权限机制及配置指引
Leadaxe 说明 Linux 下通过 resolvectl 配置 DNS 时 CAP_NET_ADMIN 权限不足的根因在于 systemd-resolved 经由 D-Bus 且由 Polkit 独立鉴权;启动器不会静默安装系统规则,改由文档提供发行版通用的配置指引。
作者原文@LeadaxeThanks — this is a clean, well-scoped fix, and the diagnosis is right:
CAP_NET_ADMINcannot help becauseresolvectldoes the work throughsystemd-resolvedover D-Bus, and Polkit authorizes each of the four actions on its own.Your rule is now documented as-is in
docs/LINUX_DNS_POLKIT.md(and.ru.md): group setup, the rule,pkaction/idverification, the security reasoning and the uninstall steps; linked fromdocs/BUILD_LINUX.mdTroubleshooting and from the README (develop, ships with the next release).We deliberately do not install the rule from the launcher — it is a system-level change and stays an explicit administrator action; documenting it also keeps it distribution-agnostic.