aboutsummaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorSteven Tucker <tuxta@mageia.org>2012-11-06 11:09:51 +0000
committerSteven Tucker <tuxta@mageia.org>2012-11-06 11:09:51 +0000
commit8df5e375cde169377b8e14e0b87920263b187329 (patch)
treed877daba5330111b91571f2e12a96ab5a1dc6deb /extras
downloadcolin-keep-8df5e375cde169377b8e14e0b87920263b187329.tar
colin-keep-8df5e375cde169377b8e14e0b87920263b187329.tar.gz
colin-keep-8df5e375cde169377b8e14e0b87920263b187329.tar.bz2
colin-keep-8df5e375cde169377b8e14e0b87920263b187329.tar.xz
colin-keep-8df5e375cde169377b8e14e0b87920263b187329.zip
Initial commit of Admin Panel.
Has basic functionality that you might expect from the core program, escalates priviledges, loads categories and modules dynamically from configuration file, launches modules and returns to the panel once the module has completed. Works within ncurses, gtk and qt environments using the native widget set.
Diffstat (limited to 'extras')
-rw-r--r--extras/README10
-rw-r--r--extras/org.freedesktop.policykit.pkexec.policy22
2 files changed, 32 insertions, 0 deletions
diff --git a/extras/README b/extras/README
new file mode 100644
index 0000000..52650fc
--- /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 0000000..b110dba
--- /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>