feat(packaging): add polkit policy, systemd units and PKGBUILD

This commit is contained in:
ahp
2026-10-15 14:29:19 +03:30
parent d81477c5f9
commit 7f11dd2c01
4 changed files with 90 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<vendor>prx</vendor>
<vendor_url>https://github.com/example/prx</vendor_url>
<!--
Maps the prx-helper executable to a dedicated polkit action. When the
unprivileged CLI runs `pkexec /usr/lib/prx/prx-helper`, polkit evaluates
org.prx.manage instead of the generic org.freedesktop.policykit.exec action.
-->
<action id="org.prx.manage">
<description>Manage prx proxy routing</description>
<message>Authentication is required to change proxy routing</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive>
<allow_active>auth_admin</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/lib/prx/prx-helper</annotate>
</action>
</policyconfig>