From d85cfc53e51bc296ed438ed1e315140e0542fae8 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 1 Sep 2013 14:07:09 +0100 Subject: Convert to polkit from usermode consolehelper for gaining root privileges polkit is better integrated into various environments, both console and GUI and offers better access rules and prevents the internal need to run su which is prone to errors and doesn't offer an environment agnostic prompt to the user. As pkexec does not like being run from a forked process, the forking in the wrapper when running under X has been dropped. mga#11125 --- polkit/drakxconf | 2 ++ polkit/org.mageia.control-centre-gui.policy | 22 ++++++++++++++++++++++ polkit/org.mageia.control-centre.policy | 22 ++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100755 polkit/drakxconf create mode 100644 polkit/org.mageia.control-centre-gui.policy create mode 100644 polkit/org.mageia.control-centre.policy (limited to 'polkit') diff --git a/polkit/drakxconf b/polkit/drakxconf new file mode 100755 index 00000000..db38e46a --- /dev/null +++ b/polkit/drakxconf @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/pkexec /usr/libexec/drakxconf diff --git a/polkit/org.mageia.control-centre-gui.policy b/polkit/org.mageia.control-centre-gui.policy new file mode 100644 index 00000000..2e25fe17 --- /dev/null +++ b/polkit/org.mageia.control-centre-gui.policy @@ -0,0 +1,22 @@ + + + + + Mageia Control Centre GUI + http://mageia.org/control-centre-gui + + + Run Mageia Control Centre GUI + Authentication is required to run Mageia Control Centre GUI + drakconf + + no + no + auth_admin_keep + + /usr/libexec/drakconf + true + + diff --git a/polkit/org.mageia.control-centre.policy b/polkit/org.mageia.control-centre.policy new file mode 100644 index 00000000..bdc43663 --- /dev/null +++ b/polkit/org.mageia.control-centre.policy @@ -0,0 +1,22 @@ + + + + + Mageia Control Centre + http://mageia.org/control-centre + + + Run Mageia Control Centre + Authentication is required to run Mageia Control Centre + drakconf + + no + no + auth_admin_keep + + /usr/libexec/drakxconf + true + + -- cgit v1.2.1