diff options
Diffstat (limited to 'extras')
-rw-r--r-- | extras/README | 10 | ||||
-rw-r--r-- | extras/org.freedesktop.policykit.pkexec.policy | 22 |
2 files changed, 32 insertions, 0 deletions
diff --git a/extras/README b/extras/README new file mode 100644 index 00000000..52650fca --- /dev/null +++ b/extras/README @@ -0,0 +1,10 @@ +Please copy extras/org.freedesktop.policykit.pkexec.policy to /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy +to make apanel be usable through policykit (mcc is currently using pam, a bit more complicated compared to polkit). + +After that you have to make a symbolic link to apanel.pl into /usr/bin/ (i.e. /usr/bin/apanel.pl) and make your local apanel.pl script executable (chmod +x apanel.pl). + +This settings will be automatically handled at rpm installation time in future/production. + +TODO: +- support to pam (wip) +- add testing/develop exceptions (avoid to insert password at develop time) diff --git a/extras/org.freedesktop.policykit.pkexec.policy b/extras/org.freedesktop.policykit.pkexec.policy new file mode 100644 index 00000000..b110dba6 --- /dev/null +++ b/extras/org.freedesktop.policykit.pkexec.policy @@ -0,0 +1,22 @@ +<?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>APanel PolicyKit Configuration</vendor> + <vendor_url>http://hal.freedesktop.org/docs/PolicyKit/</vendor_url> + + <action id="org.freedesktop.policykit.pkexec.run-apanel"> + <description>Allow APanel GUI</description> + <message>Authentication is required to run the program apanel (user=$(user), program=$(program), command_line=$(command_line))</message> + <defaults> + <allow_any>no</allow_any> + <allow_inactive>no</allow_inactive> + <allow_active>auth_admin</allow_active> + </defaults> + <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/apanel.pl</annotate> + <annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate> + </action> + +</policyconfig> |