LeadaxeLxBox / sing-box-lx 开发者
GitHub·2026.09.18 08:47:39(UTC+8)

Leadaxe:Linux DNS 经 resolvectl 需 Polkit,非 CAP_NET_ADMIN

Leadaxe 说明通过 resolvectl 配 DNS 时权限不足的根因是 systemd-resolved 走 D-Bus 并由 Polkit 鉴权,CAP_NET_ADMIN 帮不上;启动器不静默装系统规则,改由文档提供发行版指引。

作者原文@Leadaxe

Thanks — this is a clean, well-scoped fix, and the diagnosis is right: CAP_NET_ADMIN cannot help because resolvectl does the work through systemd-resolved over 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/id verification, the security reasoning and the uninstall steps; linked from docs/BUILD_LINUX.md Troubleshooting 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.