From 8df5e375cde169377b8e14e0b87920263b187329 Mon Sep 17 00:00:00 2001 From: Steven Tucker Date: Tue, 6 Nov 2012 11:09:51 +0000 Subject: 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. --- extras/README | 10 ++++++++++ extras/org.freedesktop.policykit.pkexec.policy | 22 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 extras/README create mode 100644 extras/org.freedesktop.policykit.pkexec.policy (limited to 'extras') 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 @@ + + + + + APanel PolicyKit Configuration + http://hal.freedesktop.org/docs/PolicyKit/ + + + Allow APanel GUI + Authentication is required to run the program apanel (user=$(user), program=$(program), command_line=$(command_line)) + + no + no + auth_admin + + /usr/bin/apanel.pl + TRUE + + + -- cgit v1.2.1